Skip to content

Instantly share code, notes, and snippets.

@genadipost
Last active March 31, 2018 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save genadipost/1e296143db663f488ad05dba783cb0ff to your computer and use it in GitHub Desktop.
Save genadipost/1e296143db663f488ad05dba783cb0ff to your computer and use it in GitHub Desktop.
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; \
export IP=`nmcli -f IP4.ADDRESS device show ens33 | tr -s ' ' | cut -d ' ' -f 2 | cut -d '/' -f 1`; \
echo $IP foreman1.test.local foreman1 >> /etc/hosts; \
nmcli con mod "ens33" ipv4.dns-search "test.local"; \
nmcli general hostname foreman1; \
systemctl restart systemd-hostnamed; \
systemctl stop firewalld; \
systemctl disable firewalld; \ 
foreman-installer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment