Skip to content

Instantly share code, notes, and snippets.

@philbert
Last active August 29, 2015 14:05
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 philbert/1a92ea53b8d72d8cc5f0 to your computer and use it in GitHub Desktop.
Save philbert/1a92ea53b8d72d8cc5f0 to your computer and use it in GitHub Desktop.
Vagrant.configure('2') do |config|
config.vm.box = 'centos-64-x64-vbox4210-nocm'
config.vm.box_url = 'http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box'
config.pe_build.download_root = 'https://s3.amazonaws.com/pe-builds/released'
config.pe_build.version = '3.2.3'
config.pe_build.filename = 'puppet-enterprise-3.2.3-el-6-x86_64.tar.gz'
config.vm.provision 'shell', inline: 'yum update -y'
# Only here to assist with initial provisioning of machines. After puppet agent run iptables is reenabled and started
config.vm.provision 'shell', inline: 'chkconfig iptables off'
config.vm.provision 'shell', inline: 'service iptables stop'
config.vm.provision :hosts
# Fix this for RabbitMQ
config.vm.provision 'shell', inline: 'sed -i "s/^127.0.1.1/127.0.0.1/g" /etc/hosts'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment