Skip to content

Instantly share code, notes, and snippets.

@heliocentric
Last active December 21, 2017 00:53
Show Gist options
  • Save heliocentric/c0c2c603562cc14e18a00f428447221d to your computer and use it in GitHub Desktop.
Save heliocentric/c0c2c603562cc14e18a00f428447221d to your computer and use it in GitHub Desktop.
config.vm.hostname = "mom.test"
config.vm.provision "shell", inline: <<-SHELL
sudo yum install -y https://yum.puppetlabs.com/puppet5/puppet5-release-el-7.noarch.rpm
sudo yum install puppet-agent -y
sudo /opt/puppetlabs/puppet/bin/gem install r10k
sudo /opt/puppetlabs/puppet/bin/r10k deploy -c /vagrant/r10k.yaml environment production -pv
yum -y install puppetserver
sudo mkdir -p /etc/puppetlabs/puppetserver
sudo echo "*" > /etc/puppetlabs/puppet/autosign.conf
sudo systemctl enable puppetserver
sudo systemctl start puppetserver
sudo /opt/puppetlabs/bin/puppet agent -t --environment #{branch} --server=mom.test --waitforcert 5
SHELL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment