aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/rhn_certificate_based_register
blob: 29ad19359ad7a15a97b000bdf1dcf5f78042f6c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# begin Red Hat Network certificate-based server registration
#if $redhat_management_type == "cert" and $redhat_register_user != "" and $redhat_register_password != ""
# Subscribe (register) the system
subscription-manager register --autosubscribe --username=$redhat_register_user --password=$redhat_register_password
# Add what used to be called channels
yum -y install yum-utils
yum-config-manager --enable  rhel-6-server-optional-rpms
yum-config-manager --enable  rhel-6-server-supplementary
#else
# not configured to use Certificate-based RHN (ok)
#end if
# end Red Hat Network certificate-based server registration