GithubHelp home page GithubHelp logo

alexxnica / satellite-clone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redhatsatellite/satellite-clone

0.0 2.0 0.0 186 KB

Utility to assist cloning an existing Satellite 6 server to a new host

License: GNU General Public License v3.0

Python 76.97% Shell 4.55% Ruby 18.48%

satellite-clone's Introduction

Satellite-clone

Satellite-clone contains simple Ansible playbooks that can be used to setup a Satellite 6.1 or 6.2 install with restored backup data.

Getting Started

What you need:

to clone a Satellite Server:

  • A blank (vanilla install) RHEL 7 server. You will run the setup commands here.
  • A backup from a 6.1 or 6.2 Satellite server created with katello-backup. This backup can be with or without pulp-data, and can be from a RHEL 6 or 7 machine.
  • You will need a Satellite 6 subscription for the cloned machine. There are options for obtaining subscriptions at a discounted rate for smaller environments. If you would like to handle the registration of the system manually, set register_to_portal: false in satellite-clone-vars.yml

Setup

  1. git clone this project.

      # git clone https://github.com/RedHatSatellite/satellite-clone.git
  2. Install ansible package on the server. Ansible should be installed from extras channel.

      # subscription-manager repos --enable rhel-7-server-extras-rpms
      # yum install -y ansible

Now you can proceed to performing the clone:

Please check our FAQ section for frequently asked questions.

Development

To make a contribution, please fork the repository and open up a pull request with your branch. All pull requests need to have a corresponding issue, you can comment the issue that your are fixing by putting Fixes #302 (where 302 is the issue number) in the commit message. If there is no issue yet for your problem, just open one up! Community issues and contributions are always appreciated.

Testing is automated and can be run by commenting yee-haw on a pull request.

Fact caching

In order to have the functionality of start-at-task and interactive mode, we cache facts so they can be re-used if someone wants to start the playbook at a certain step. The syntax for this looks something like:

- name: Check for config tar file
  stat:
    path: '{{ backup_dir }}/config_files.tar.gz'
    get_checksum: False
    get_md5: False
  register: config_data

- name: set fact - config_data
  set_fact:
    clone_config_data_exists: "{{ config_data.stat.exists }}"
    cacheable: True

Any variable-type data should be stored as a fact and made cacheable. Note that cacheable: True should be set for every fact.

satellite-clone's People

Contributors

sthirugn avatar pondrejk avatar sghai avatar ehelms avatar pgagne avatar savitojs avatar tbrisker avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.