This repository has been archived by the owner on Sep 25, 2019. It is now read-only.
/
Vagrantfile
68 lines (61 loc) · 1.81 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'vagrant/provisioners/chef'
#
# Before running vagrant, export the shell variable for the organization on Hosted Chef and
# make sure the validator certificate is in ~/.chef.
#
# export ORGNAME=your_platform_organization
#
# You can optionally export a shell variable for your Chef server username if it is different
# from your OS user export OPSCODE_USER=bofh
Vagrant::Config.run do |config|
config.vm.box = 'precise64'
config.vm.box_url = 'http://files.vagrantup.com/precise64.box'
config.vm.customize [ "modifyvm", :id, "--memory", 1024]
config.vm.customize [ "modifyvm", :id, "--cpus", 2 ]
config.vm.host_name = "alice.local"
config.vm.network :hostonly, "172.16.20.125", :netmask => "255.255.255.0"
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [ '/tmp/alice-cookbooks' ]
chef.data_bags_path = "/tmp/alice-data_bags"
chef.provisioning_path = "/etc/chef"
chef.log_level = :info
chef.run_list = [
"recipe[varnish::default]",
"recipe[stunnel]",
"recipe[mysql::ruby]",
"recipe[mysql::server]",
"recipe[alice::catlady]",
"recipe[alice::varnish]"
]
chef.json = {
:aliceadmin => {
:host => "127.0.0.1",
:port => "8000"
},
:catlady => {
:db => {
:hostname => "localhost",
:username => "root",
:password => "changeme",
:name => "alice",
:params => {
:mysql_enable_utf8 => 1,
:mysql_auto_reconnect => 1
}
}
},
:varnish => {
:listen_port => 80,
:vcl_conf => 'alice.vcl'
},
:stunnel => {
:https => { :connect_port => 80 }
},
:mysql => {
:server_root_password => 'changeme'
}
}
end
end