Skip to content

Instantly share code, notes, and snippets.

@omaciel
Created April 7, 2014 21:20
Show Gist options
  • Save omaciel/10059276 to your computer and use it in GitHub Desktop.
Save omaciel/10059276 to your computer and use it in GitHub Desktop.
One-Box Setup Satellite 6 to use libvirt for provisioning
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