RedHatSatellite / satellite-clone

Utility to assist cloning an existing Satellite 6 server to a new host
GNU General Public License v3.0
37 stars 31 forks source link

Support cloning Satellite 6.6 #365

Closed jturel closed 4 years ago

jturel commented 4 years ago

I tested this as fully working to clone a Sat 6.6 from the latest build.

Since the repos aren't available publicly you'll need to make this change to tasks/main.yaml - note the OHSNAP hostname you'll need to provide:

 - name: Enable required repos for Satellite installation
-  command: subscription-manager repos --enable rhel-{{ ansible_distribution_major_version }}-server-rpms --enable rhel-server-rhscl-{{ ansible_distribution_major_version }}-rpms --enable rhel-{{ ansible_distribution_major_version 
+  #command: subscription-manager repos --enable rhel-{{ ansible_distribution_major_version }}-server-rpms --enable rhel-server-rhscl-{{ ansible_distribution_major_version }}-rpms --enable rhel-{{ ansible_distribution_major_version
+  command: subscription-manager repos --enable rhel-{{ ansible_distribution_major_version }}-server-rpms --enable rhel-server-rhscl-{{ ansible_distribution_major_version }}-rpms
   ignore_errors: True
   register: enable_repos_result
   when: enable_repos

+- name: Add 6.6 repos
+  command: curl -o /etc/yum.repos.d/satellite.repo http://<OHSNAP>/api/releases/6.6.0/el7/satellite/repo_file
+

This also requires a foreman-maintain patch on the destination Satellite. It can be cloned successfully without but most Katello pages will be blank. https://github.com/theforeman/foreman_maintain/pull/282