-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathVagrantfile
42 lines (34 loc) · 1.2 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
MOUNT_POINT = '/home/vagrant/ganeti_webmgr'
box_ver = "20140121"
box_url = "http://vagrant.osuosl.org/centos-6-#{box_ver}.box"
Vagrant.configure("2") do |config|
config.vm.hostname = "gwm.example.org"
config.vm.box = "centos-6-#{box_ver}"
config.vm.box_url = "#{box_url}"
config.vm.network :private_network, ip: "33.33.33.100", adapter: 2
config.berkshelf.berksfile_path = "chef/Berksfile"
config.berkshelf.enabled = true
config.omnibus.chef_version = "11.12.4"
# Symlink our project for development purposes
config.vm.synced_folder ".", MOUNT_POINT
config.vm.provision :chef_solo do |chef|
chef.environments_path = "chef/environments"
chef.environment = "vagrant"
chef.data_bags_path = "chef/data_bags"
chef.encrypted_data_bag_secret_key_path = "chef/encrypted_data_bag_secret"
chef.json = {
:mysql => {
:server_root_password => 'rootpass',
:server_debian_password => 'debpass',
:server_repl_password => 'replpass'
}
}
chef.run_list = [
"recipe[ganeti_webmgr::mysql]",
"recipe[ganeti_webmgr::bootstrap_user]",
"recipe[ganeti_webmgr::apache]"
]
end
end