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
#!/bin/bash | |
# How to use | |
# 1. Replace the "YOURIP" to yourIP | |
#sed -i -e 's/YOURIP/192.168.x.x/g' setup-taiga-centos.sh | |
# 2. Run at the root | |
#source setup-taiga-centos.sh |
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 \ |