Skip to content

Instantly share code, notes, and snippets.

@mccun934
Created June 27, 2012 01:58
Show Gist options
  • Save mccun934/3000830 to your computer and use it in GitHub Desktop.
Save mccun934/3000830 to your computer and use it in GitHub Desktop.
<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