-
Notifications
You must be signed in to change notification settings - Fork 20
/
Vagrantfile
37 lines (33 loc) · 1.41 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.network :forwarded_port, guest: 80, host: 3456 # nginx
config.vm.hostname = "example"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", 256]
end
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.roles_path = "roles"
chef.json = {
:user => "vagrant",
:servername => "example.example.com",
:dbname => "example",
:staticfiles => "/opt/example/apps/example/static/",
:postgresql => {
:password => {
:postgres => "1qaz2wsx"
}
},
:users => [
{
:name => "honza",
:key => "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArIzjs/UHIogXxUG1jHGuZF98O9fPuGwovaHzGGVm061XeeszNguCXAVXMYK58zrYeaJSPG5/LbdiU9/cRXn+wYiniMTUxQoVnAJ9dMScO46rvsL+oR/90FAuv7rIaYrKTGKhCL2G2WEYduIqRc3CjcF0FsGoY7pYOTzLniKHNJ0z6N4OBrvhx/SDdqb86EuJqgJtMkl9vsjtBjsi27FPc8cOEMZEQWAvMK4NVQgeQvuNW86zl4vwEsjEUcI3Q7T790cofZGyKFbbhgxR5ew5c5hWgidDRruwEVdqhdfnzxHiAWJpd7G2QiHo2hrysh9K4mW56w2OFzs/i8GwBeV2fw== [email protected]"
}
]
}
chef.add_role "example"
end
end