Created
April 7, 2014 21:20
-
-
Save omaciel/10059276 to your computer and use it in GitHub Desktop.
One-Box Setup Satellite 6 to use libvirt for provisioning
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
puppet module install -i /tmp domcleal/katellovirt | |
puppet apply -v -e 'include katellovirt' --modulepath /tmp | |
export FORWARDERS=$(for i in $(cat /etc/resolv.conf |grep nameserver|awk '{print $2}'); do echo --capsule-dns-forwarders $i;done) | |
export OAUTH_SECRET=$(grep oauth_consumer_secret /etc/foreman/settings.yaml | cut -d ' ' -f 2) | |
echo FORWARDERS: $FORWARDERS | |
echo OAUTH_SECRET: $OAUTH_SECRET | |
katello-installer --capsule-parent-fqdn $(hostname) --capsule-dns true $FORWARDERS --capsule-dns-interface virbr1 --capsule-dns-zone katellolabs.org --capsule-dhcp true --capsule-dhcp-interface virbr1 --capsule-tftp true --capsule-tftp-servername $(hostname) --capsule-puppet true --capsule-puppetca true --capsule-register-in-foreman true --capsule-foreman-oauth-secret $OAUTH_SECRET --capsule-pulp true --capsule-pulp-oauth-secret $OAUTH_SECRET | |
service libvirtd restart | |
service foreman restart | |
service foreman-proxy restart | |
virsh -c 'qemu+tcp://localhost:16509/system' list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment