Skip to content

Instantly share code, notes, and snippets.

@genadipost
Last active April 4, 2018 11:04

Revisions

  1. genadipost revised this gist Apr 4, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion foreman_proxy_install.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ 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.153 proxy1.test.local proxy1" >> /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; \
  2. genadipost revised this gist Apr 4, 2018. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions foreman_proxy_install.md
    Original file line number Diff line number Diff line change
    @@ -5,9 +5,9 @@ yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch
    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.150 foreman1.test.local foreman1" >> /etc/hosts; \
    echo "192.168.227.150 web-foreman.test.local" >> /etc/hosts; \
    echo "192.168.227.148 proxy1.test.local proxy1" >> /etc/hosts; \
    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.153 proxy1.test.local proxy1" >> /etc/hosts; \
    nmcli con mod ens33 ipv4.dns-search "test.local"; \
    nmcli general hostname proxy1; \
    systemctl restart systemd-hostnamed; \
  3. genadipost revised this gist Apr 2, 2018. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions foreman_proxy_install.md
    Original file line number Diff line number Diff line change
    @@ -5,9 +5,9 @@ yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch
    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.138 foreman1.test.local foreman1" >> /etc/hosts; \
    echo "192.168.227.138 web-foreman.test.local" >> /etc/hosts; \
    echo "192.168.227.147 proxy1.test.local proxy1" >> /etc/hosts; \
    echo "192.168.227.150 foreman1.test.local foreman1" >> /etc/hosts; \
    echo "192.168.227.150 web-foreman.test.local" >> /etc/hosts; \
    echo "192.168.227.148 proxy1.test.local proxy1" >> /etc/hosts; \
    nmcli con mod ens33 ipv4.dns-search "test.local"; \
    nmcli general hostname proxy1; \
    systemctl restart systemd-hostnamed; \
  4. genadipost revised this gist Apr 2, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion foreman_proxy_install.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ yum -y install foreman-release-scl; \
    yum -y install foreman-installer; \
    echo "192.168.227.138 foreman1.test.local foreman1" >> /etc/hosts; \
    echo "192.168.227.138 web-foreman.test.local" >> /etc/hosts; \
    echo "192.168.227.145 proxy1.test.local proxy1" >> /etc/hosts; \
    echo "192.168.227.147 proxy1.test.local proxy1" >> /etc/hosts; \
    nmcli con mod ens33 ipv4.dns-search "test.local"; \
    nmcli general hostname proxy1; \
    systemctl restart systemd-hostnamed; \
  5. genadipost revised this gist Apr 1, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion foreman_proxy_install.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ yum -y install foreman-release-scl; \
    yum -y install foreman-installer; \
    echo "192.168.227.138 foreman1.test.local foreman1" >> /etc/hosts; \
    echo "192.168.227.138 web-foreman.test.local" >> /etc/hosts; \
    echo "192.168.227.144 proxy1.test.local proxy1" >> /etc/hosts; \
    echo "192.168.227.145 proxy1.test.local proxy1" >> /etc/hosts; \
    nmcli con mod ens33 ipv4.dns-search "test.local"; \
    nmcli general hostname proxy1; \
    systemctl restart systemd-hostnamed; \
  6. genadipost revised this gist Mar 31, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion foreman_proxy_install.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ yum -y install foreman-release-scl; \
    yum -y install foreman-installer; \
    echo "192.168.227.138 foreman1.test.local foreman1" >> /etc/hosts; \
    echo "192.168.227.138 web-foreman.test.local" >> /etc/hosts; \
    echo "192.168.227.134 proxy1.test.local proxy1" >> /etc/hosts; \
    echo "192.168.227.144 proxy1.test.local proxy1" >> /etc/hosts; \
    nmcli con mod ens33 ipv4.dns-search "test.local"; \
    nmcli general hostname proxy1; \
    systemctl restart systemd-hostnamed; \
  7. genadipost revised this gist Feb 9, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions foreman_proxy_install.md
    Original file line number Diff line number Diff line change
    @@ -5,8 +5,8 @@ yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch
    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.130 foreman1.test.local foreman1" >> /etc/hosts; \
    echo "192.168.227.130 web-foreman.test.local" >> /etc/hosts; \
    echo "192.168.227.138 foreman1.test.local foreman1" >> /etc/hosts; \
    echo "192.168.227.138 web-foreman.test.local" >> /etc/hosts; \
    echo "192.168.227.134 proxy1.test.local proxy1" >> /etc/hosts; \
    nmcli con mod ens33 ipv4.dns-search "test.local"; \
    nmcli general hostname proxy1; \
  8. genadipost created this gist Jun 24, 2017.
    41 changes: 41 additions & 0 deletions foreman_proxy_install.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,41 @@

    ```
    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.130 foreman1.test.local foreman1" >> /etc/hosts; \
    echo "192.168.227.130 web-foreman.test.local" >> /etc/hosts; \
    echo "192.168.227.134 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
    ```