Skip to content

Instantly share code, notes, and snippets.

@ksingh7
Created June 17, 2015 13:52
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 ksingh7/5f9dd2e36a675c2ccc7a to your computer and use it in GitHub Desktop.
Save ksingh7/5f9dd2e36a675c2ccc7a to your computer and use it in GitHub Desktop.
vagrant-provision-shell
puppet.vm.provision 'shell', inline: 'systemctl stop firewalld'
puppet.vm.provision 'shell', inline: 'setenforce 0'
puppet.vm.provision 'shell', inline: "sed -i s'/SELINUX.*=.*enforcing/SELINUX=disabled'/g /etc/selinux/config"
puppet.vm.provision 'shell', inline: 'rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm'
puppet.vm.provision 'shell', inline: 'yum install -y puppet-server'
puppet.vm.provision 'shell', inline: 'puppet resource package puppet-server ensure=latest'
puppet.vm.provision 'shell', inline: 'yum update -y'
puppet.vm.provision 'shell', inline: 'systemctl enable puppetmaster'
puppet.vm.provision 'shell', inline: 'systemctl start puppetmaster'
puppet.vm.provision 'shell', inline: 'systemctl disable firewalld'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment