Last active
December 21, 2017 00:53
-
-
Save heliocentric/c0c2c603562cc14e18a00f428447221d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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