-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile.template
41 lines (34 loc) · 1013 Bytes
/
Vagrantfile.template
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
NAME = "NAME"
Vagrant.configure("2") do |config|
config.vm.box = "trusty64"
config.vm.network :private_network, ip: "192.168.77.XX"
config.vm.synced_folder "httpd", "/srv/httpd"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--name", NAME]
vb.customize ["modifyvm", :id, "--cpus", 1]
vb.gui = false
end
config.vm.provision :chef_solo do |chef|
chef.json = {
:project => {
:name => NAME
},
:postfix => {
:smtp_username => "[email protected]",
:smtp_password => "password",
}
}
chef.custom_config_path = "Vagrantfile.chef"
chef.log_level = :debug
chef.cookbooks_path = [".chef/cookbooks"]
chef.roles_path = ".chef/roles"
chef.add_recipe "apt"
chef.add_recipe "git"
chef.add_recipe "rbenv"
chef.add_recipe "rbenv::install"
chef.add_recipe "node"
chef.add_recipe "redis"
chef.add_recipe "mariadb"
end
end