-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
46 lines (40 loc) · 1.44 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
44
45
46
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Shared folder
config.vm.synced_folder "", "/vagrant", disabled: true
config.vm.synced_folder "workspace/puppet/", "/puppet"
# All vm-wide puppet
config.vm.provision :puppet do |puppet|
puppet.module_path = "workspace/puppet"
puppet.manifests_path = "Vagrant/puppet/manifests"
end
# config.vm.define "puppetmaster", do |puppetmaster|
# puppetmaster.vm.box = "puppet-Centos6.4"
# puppetmaster.vm.provision :puppet do |puppet|
# puppet.manifest_file = "puppetmaster.pp"
# puppet.manifests_path = "Vagrant/puppet/manifests"
# end
# end
config.vm.define "centos", primary: true do |centos|
centos.vm.box = "terc-Centos6.5"
centos.vm.provision :puppet do |puppet|
puppet.manifest_file = "centos.pp"
puppet.manifests_path = "Vagrant/puppet/manifests"
end
end
config.vm.define "fedora" do |fedora|
fedora.vm.box = "terc-Fedora18"
fedora.vm.provision :puppet do |puppet|
puppet.manifests_path = "Vagrant/puppet/manifests"
puppet.manifest_file = "fedora.pp"
end
end
config.vm.define "ubuntu" do |ubuntu|
ubuntu.vm.box = "puppet-Ubuntu12.04"
ubuntu.vm.provision :puppet do |puppet|
puppet.manifests_path = "Vagrant/puppet/manifests"
puppet.manifest_file = "ubuntu.pp"
end
end
end