yum -y install https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm; \
yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm; \
yum -y install https://yum.theforeman.org/releases/1.15/el7/x86_64/foreman-release.rpm; \
yum -y install foreman-release-scl; \
yum -y install foreman-installer; \
echo "192.168.227.154 foreman1.test.local foreman1" >> /etc/hosts; \
echo "192.168.227.154 web-foreman.test.local" >> /etc/hosts; \
echo "192.168.227.156 proxy1.test.local proxy1" >> /etc/hosts; \
nmcli con mod ens33 ipv4.dns-search "test.local"; \
nmcli general hostname proxy1; \
systemctl restart systemd-hostnamed; \
systemctl stop firewalld; \
systemctl disable firewalld; \
mkdir -p /etc/puppetlabs/puppet/ssl/{certs,private_keys}; \
foreman-installer \
--no-enable-foreman \
--puppet-server-ca=false \
--foreman-proxy-puppet=false \
--foreman-proxy-puppetca=false \
--puppet-server-foreman-url=https://web-foreman.test.local \
--no-enable-puppet \
--enable-foreman-proxy \
--foreman-proxy-tftp=true \
--foreman-proxy-tftp-servername=192.168.111.134 \
--foreman-proxy-dhcp=true \
--foreman-proxy-dhcp-interface=ens37 \
--foreman-proxy-dhcp-gateway=192.168.111.1 \
--foreman-proxy-dhcp-range="192.168.111.220 192.168.111.240" \
--foreman-proxy-dhcp-nameservers="192.168.111.1" \
--foreman-proxy-templates=true \
--foreman-proxy-templates-listen-on=http \
--foreman-proxy-template-url=http://proxy1.test.local:8000 \
--foreman-proxy-http=true \
--foreman-proxy-foreman-base-url=https://web-foreman.test.local \
--foreman-proxy-trusted-hosts=foreman1.test.local \
--foreman-proxy-register-in-foreman=true \
--foreman-proxy-oauth-consumer-key=ScfFwNRnUJFc7eLYPiiuPyK57YX6Kjn5 \
--foreman-proxy-oauth-consumer-secret=zVkGuZcdkL6VjQ3rtMuuArGBni3Hynfu
Last active
April 4, 2018 11:04
-
-
Save genadipost/968eec4bfa4b863c1b565d49ddb48317 to your computer and use it in GitHub Desktop.
foreman proxy install
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment