-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathVagrantfile
More file actions
executable file
·66 lines (48 loc) · 2.21 KB
/
Vagrantfile
File metadata and controls
executable file
·66 lines (48 loc) · 2.21 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/env ruby
Vagrant.configure("2") do |config|
config.vm.box = "devstackbase-0.0.1"
config.vm.box_url = "https://dl.dropboxusercontent.com/u/1355795/devstackbase-0.0.1.box"
config.vm.synced_folder ".", "/vagrant", :nfs => true
# CONTROLLER CONFIG
config.vm.define "controller" do |controller|
controller.vm.hostname = "controller"
# eth1 (IMPORTANT: This network should not have DCHP)
controller.vm.network "private_network", ip: "192.168.42.11"
# When vagrant-vbguest updates the VirtualBox Guest
# Addition kernel modules, shared folders subsequently
# are lost and Puppet fails. Auto-rebooting fixes that.
controller.vbguest.auto_reboot = true
controller.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", 3072]
# This allows symlinks to be created within the /vagrant root directory,
# which is something librarian-puppet needs to be able to do. This might
# be enabled by default depending on what version of VirtualBox is used.
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end
controller.vm.provision :shell, :path => "shell/check_kernel_version.sh"
controller.vm.provision :shell, :path => "shell/install_puppet_modules.sh"
controller.vm.provision "puppet" do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "site.pp"
end
end
# COMPUTE CONFIG
config.vm.define "compute" do |compute|
compute.vm.hostname = "compute"
# eth1
compute.vm.network "private_network", ip: "192.168.42.12"
compute.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", 2048]
end
# When vagrant-vbguest updates the VirtualBox Guest
# Addition kernel modules, shared folders subsequently
# are lost and Puppet fails. Auto-rebooting fixes that.
compute.vbguest.auto_reboot = true
compute.vm.provision :shell, :path => "shell/check_kernel_version.sh"
compute.vm.provision :shell, :path => "shell/install_puppet_modules.sh"
compute.vm.provision "puppet" do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "site.pp"
end
end
end