forked from zuazo/owncloud-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
46 lines (39 loc) · 1.15 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# requires vagrant-berkshelf and vagrant-omnibus plugins
Vagrant.configure("2") do |config|
config.vm.hostname = "owncloud.local"
config.vm.box = "opscode-ubuntu-12.04"
config.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.network :forwarded_port, guest: 443, host: 8443
config.vm.boot_timeout = 120
config.berkshelf.enabled = true
config.omnibus.chef_version = :latest
config.vm.provision :chef_solo do |chef|
chef.run_list = [
"recipe[owncloud::default]"
]
chef.json = {
"mysql" => {
"server_root_password" => "changeme",
"server_repl_password" => "changeme",
"server_debian_password" => "changeme"
},
"postgresql" => {
"password" => {
"postgres" => "changeme"
}
},
"owncloud" => {
"admin" => {
"pass" => "changeme"
},
"config" => {
"dbpassword" => "changeme",
"dbtype" => ENV["DBTYPE"] || "mysql"
}
}
}
end
end