forked from nickdaugherty/intro-to-programming-2014
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
43 lines (34 loc) · 1.51 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
#Vagrant.require_version ">= 1.5.0"
if `vagrant --version` < 'Vagrant 1.5.0'
abort('Your Vagrant is too old. Please install at least 1.5.0')
end
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.provider "vmware_fusion" do |v, override|
override.vm.box = "precise64-vmware"
override.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
end
config.vm.hostname = ENV['QUICKSTART_DOMAIN']
config.vm.network :private_network, ip: "10.86.73.80"
config.vm.synced_folder ".", "/srv"
# Map MySQL to local port 3306
config.vm.network :forwarded_port, guest: 3306, host: 3306
# Address a bug in an older version of Puppet
# See http://stackoverflow.com/questions/10894661/augeas-support-on-my-vagrant-machine
config.vm.provision :shell, :inline => "if ! dpkg -s puppet > /dev/null; then sudo apt-get update --quiet --yes && sudo apt-get install puppet --quiet --yes; fi"
# Provision everything we need with Puppet
config.vm.provision :puppet do |puppet|
puppet.module_path = "puppet/modules"
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "init.pp"
puppet.options = ['--templatedir', '/vagrant/puppet/files']
puppet.facter = {
"quickstart_domain" => ENV['QUICKSTART_DOMAIN'],
}
end
end