Skip to content

Instantly share code, notes, and snippets.

@joshuacalloway
Last active August 29, 2015 14:02
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 joshuacalloway/5192401a1eeb287fc4aa to your computer and use it in GitHub Desktop.
Save joshuacalloway/5192401a1eeb287fc4aa to your computer and use it in GitHub Desktop.
base Vagrantfile - for stackoverflow question
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos6.5"
config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box"
config.vm.post_up_message = "vagrant ssh - will log you into the machine\nvagrant package --base base --output ../base.box - will create a retel-base vagrant box"
config.vm.provider :virtualbox do |v, override|
v.name = "base"
end
config.vm.provision "shell", inline: "puppet module install --force camptocamp-archive"
config.vm.provision "shell", inline: "puppet module install --force puppetlabs-stdlib"
config.vm.provision "shell", inline: "puppet module install --force maestrodev-wget"
# change stuff like /etc/sudoers
config.vm.provision :puppet do |puppet|
puppet.manifest_file = "default.pp"
puppet.manifests_path = "manifests"
puppet.module_path = "modules"
end
end
Vagrant.configure("2") do |config|
config.vm.box = "base"
config.vm.box_url = "../base.box"
config.vm.post_up_message = "vagrant ssh - will log you into the machine"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment