-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
91 lines (76 loc) · 2.47 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# https://www.vagrantup.com/docs/virtualbox/configuration.html
config.vm.provider "virtualbox" do |v|
v.name = "Stockton"
end
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "trusty64-vanilla"
config.vm.box_url = "https://dl.dropboxusercontent.com/u/11847976/trusty64-vanilla.box"
config.vm.synced_folder ENV["FO_OPS_DIR"], ::File.join("", "ops")
config.vm.network :forwarded_port, guest: 2703, host: 2703
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ::File.join(ENV["FO_OPS_DIR"], "chef", "cookbooks")
chef.version = "12.13.37"
#chef.roles_path = "../my-recipes/roles"
#chef.data_bags_path = "../my-recipes/data_bags"
# chef.add_recipe "locations"
# chef.json = {
#
# "locations" => {
# "users" => {
# "vagrant" => {
# "home_index" => {
# "src" => "/vagrant",
# "dest" => "/tmp/vagrant/locations/test",
# "mode" => "0777"
# }
# },
# },
# },
#
# }
chef.add_recipe "package::update"
chef.add_recipe "package"
chef.add_recipe "pip"
chef.add_recipe "environ"
chef.add_recipe "environ::python"
#chef.add_role ""
# You may also specify custom JSON attributes:
chef.json = {
"package" => {
:install => [
"python-dev",
"git",
]
},
"pip" => {
:install => [
"pout", #"git+https://github.com/Jaymon/pout#egg=pout",
"testdata", #"git+https://github.com/Jaymon/testdata#egg=testdata",
"pyt", #"git+https://github.com/Jaymon/pyt#egg=pyt",
"git+https://github.com/firstopinion/captain#egg=captain==0.4.1",
"geoip2",
],
:upgrade => [],
},
"environ" => {
"global" => {
:set => {
}
},
"python" => {
#"sitecustomize" => ::File.join("", "ops", "conf", "sitecustomize.py")
"usercustomize" => {
"vagrant" => ::File.join("", "ops", "conf", "sitecustomize.py"),
"root" => ::File.join("", "ops", "conf", "sitecustomize.py")
}
}
},
}
end
end