36 lines
1.2 KiB
Ruby
36 lines
1.2 KiB
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
Vagrant::Config.run do |config|
|
|
if ENV['REDHAT'] == '1'
|
|
config.vm.box = 'centos-6-x86_64'
|
|
config.vm.box_url = 'http://dl.dropbox.com/u/1627760/centos-6.0-x86_64.box'
|
|
elsif ENV['LUCID'] == '1'
|
|
config.vm.box = "lucid64"
|
|
config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
|
|
else
|
|
config.vm.box = "precise64"
|
|
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
|
|
end
|
|
|
|
# Forward a port from the guest to the host, which allows for outside
|
|
# computers to access the VM, whereas host only networking does not.
|
|
config.vm.forward_port 80, 8080
|
|
config.vm.forward_port 443, 8443
|
|
|
|
config.vm.network :hostonly, "192.168.50.4"
|
|
|
|
# config.vm.share_folder "work", "/work", "work"
|
|
|
|
# Share an additional folder to the guest VM. The first argument is
|
|
# an identifier, the second is the path on the guest to mount the
|
|
# folder, and the third is the path on the host to the actual folder.
|
|
# config.vm.share_folder "v-data", "/vagrant_data", "../data"
|
|
|
|
config.vm.provision :puppet do |puppet|
|
|
puppet.manifests_path = "manifests"
|
|
puppet.module_path = ["modules","local-modules"]
|
|
puppet.manifest_file = ENV['MANIFEST'] || "vagrant.pp"
|
|
end
|
|
end
|