Created
July 3, 2014 14:28
-
-
Save mccun934/98e63fefd019d77000ae 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
OAUTH_SECRET=$(grep oauth_secret /etc/pulp/server.conf | grep -v "#" | awk '{print $2}') | |
FORWARDERS=$(for i in $(cat /etc/resolv.conf |grep nameserver|awk '{print $2}'); do echo --capsule-dns-forwarders $i; done) | |
FOREMAN_OAUTH_SECRET=$(grep oauth_consumer_secret /etc/foreman/settings.yaml | grep -v "#" | awk '{print $2}') | |
katello-installer -v \ | |
--capsule-parent-fqdn $(hostname) \ | |
--capsule-dns true \ | |
$FORWARDERS \ | |
--capsule-dns-interface virbr1 \ | |
--capsule-dns-zone example.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 "$FOREMAN_OAUTH_SECRET" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment