]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
cobbler: Subscribe to satellite during RHEL kickstart if use_satellite
authorDavid Galloway <dgallowa@redhat.com>
Mon, 26 Feb 2018 17:50:30 +0000 (12:50 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 26 Feb 2018 19:05:15 +0000 (14:05 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/cobbler/templates/snippets/cephlab_rhel_rhsm

index 9c8c2a00cf519502c90f9d3725d1c82204b4043c..d6617e0f7b72d78c9c6a6b1235061cf113836753 100644 (file)
@@ -1,4 +1,9 @@
 ## {{ ansible_managed }}
+{% if use_satellite %}
+## Install our satellite server's CA RPM if use_satellite is true
+wget -O /tmp/satellite-ca.rpm {{ satellite_cert_rpm }}
+rpm -U /tmp/satellite-ca.rpm
+{% endif %}
 ## Subscribe (These vars will be empty and this snippet won't get run if the vars aren't set like in Sepia)
 subscription-manager register --activationkey={{ subscription_manager_activationkey }} --org={{ subscription_manager_org }}
 ## Enable repos