Created
June 27, 2012 01:58
-
-
Save mccun934/3000830 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<services> | |
<service name="candlepin_reg"> | |
<executable> | |
<contents><![CDATA[#!/bin/bash -x | |
( | |
echo 6.2 > /etc/yum/vars/releasever | |
echo - modify /etc/rhsm/rhsm.conf | |
echo - bootstrap | |
rpm -ivh http://$sehost/pub/candlepin-cert-consumer-$sehost-1.0-1.noarch.rpm | |
subscription-manager register --username=LabAdmin --password=password | |
--org=Lab_Company --env=Dev --autosubscribe | |
echo - display subscribe repos | |
# import gpg key | |
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release | |
# import Mike's custom GPG key | |
rpm --import http://$sehost/labrepo/RPM-GPG-KEY-rhsummitlab | |
### Placeholder to ZOO GPG import | |
# rpm --import //...... | |
yum repolist | |
) 2>&1 | tee /var/audrey/tooling/auto_reg.log | |
]]></contents> | |
</executable> | |
</service> | |
</services> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment