From 036595e194df5eb95e359f39a8f9b0982d61cfe5 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 26 Feb 2018 12:50:30 -0500 Subject: [PATCH] cobbler: Subscribe to satellite during RHEL kickstart if use_satellite Signed-off-by: David Galloway --- roles/cobbler/templates/snippets/cephlab_rhel_rhsm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/cobbler/templates/snippets/cephlab_rhel_rhsm b/roles/cobbler/templates/snippets/cephlab_rhel_rhsm index 9c8c2a00..d6617e0f 100644 --- a/roles/cobbler/templates/snippets/cephlab_rhel_rhsm +++ b/roles/cobbler/templates/snippets/cephlab_rhel_rhsm @@ -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 -- 2.47.3