forked from Automattic/vip-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
41 lines (32 loc) · 1.43 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
# -*- 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.4.0"
if `vagrant --version` < 'Vagrant 1.4.0'
abort('Your Vagrant is too old. Please install at least 1.4.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.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 = {
"svn_username" => ENV['SVN_USERNAME'],
"svn_password" => ENV['SVN_PASSWORD'],
"quickstart_domain" => ENV['QUICKSTART_DOMAIN'],
}
end
end