-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
50 lines (40 loc) · 1.37 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
47
48
49
50
# -*- mode: ruby -*-
# vi: set ft=ruby :
# 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|
config.vm.box = "bento/ubuntu-14.04"
config.omnibus.chef_version = :latest
# config.vm.network "forwarded_port", guest: 80, host: 8080
# config.vm.network "forwarded_port", guest: 10081, host: 10081
config.vm.network "private_network", ip: "10.30.30.30"
# config.vm.provider "virtualbox" do |vb|
# vb.customize ["modifyvm", :id, "--memory", "1024"]
# end
config.berkshelf.enabled = true
config.berkshelf.berksfile_path = './Berksfile'
config.vm.provision "chef_solo" do |chef|
chef.add_recipe "zendserver::single"
chef.add_recipe "mysql_zend"
# You may also specify custom JSON attributes:
chef.json = {
zendserver: {
version: "8.5",
phpversion: "5.6",
adminpassword: "1234",
production: "false",
apikeyname: "dev",
apikeysecret: "aaaabbbbccccddddeeeeffffgggghhhhiiiijjjjkkkkllllmmmmnnnnoooopppp"
},
mysql: {
server_debian_password: "1234",
server_root_password: "1234",
server_repl_password: "1234"
},
mysql_zend: {
password: "1234",
version: "5.5"
}
}
end
end