-
Notifications
You must be signed in to change notification settings - Fork 3
/
Berksfile
63 lines (53 loc) · 2.77 KB
/
Berksfile
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
chef_api :config
site :opscode
# If you have no intention of setting up a metrics server for testing,
# and don't want to have to have the opscode-dev-vm repo with its
# cookbooks on your machine, you can set this to false
ENABLE_METRICS_SERVER = true
if ENV['OPSCODE_SRC'].nil?
puts "ERROR: please export OPSCODE_SRC variable."
exit 1
end
if ENV['OPSCODE_COOKBOOKS'].nil?
puts """
ERROR: please export OPSCODE_COOKBOOKS variable.
This should be a directory with checkouts of cookbooks from the
'opscode-cookbooks' Github organization.
If you point it to anything else (like your checkout of the
opscode/opscode-platform-cookbooks repo), you are probably going
to be unhappy.
"""
exit 1
end
cookbook "opscode-bifrost", git: "git@github.com:opscode-cookbooks/opscode-bifrost.git"
# cookbook "opscode-bifrost", path: "#{ENV['OPSCODE_COOKBOOKS']}/opscode-bifrost"
cookbook "opscode-erlang", git: "git@github.com:opscode-cookbooks/opscode-erlang"
# cookbook "opscode-erlang", path: "#{ENV['OPSCODE_COOKBOOKS']}/opscode-erlang"
cookbook "opscode-pedant", git: "git@github.com:opscode-cookbooks/opscode-pedant.git"
# cookbook "opscode-pedant", path: "#{ENV['OPSCODE_COOKBOOKS']}/opscode-pedant"
cookbook "opscode-ruby", git: "git@github.com:opscode-cookbooks/opscode-ruby.git"
# cookbook "opscode-ruby", path: "#{ENV['OPSCODE_COOKBOOKS']}/opscode-ruby"
cookbook "sqitch", git: "git@github.com:opscode-cookbooks/sqitch.git"
# cookbook "sqitch", path: "#{ENV['OPSCODE_COOKBOOKS']}/sqitch"
# This is only needed for local dev work
cookbook "opscode-dev-shim", git: "git@github.com:opscode-cookbooks/opscode-dev-shim.git"
# cookbook "opscode-dev-shim", path: "#{ENV['OPSCODE_COOKBOOKS']}/opscode-dev-shim"
# TODO recent versions of opscode-postgresql don't work for local dev--fix that and remove this!
cookbook "opscode-postgresql", '= 0.1.3'
if ENABLE_METRICS_SERVER
# These are currently needed if you want to get graphite running locally
DEV_VM_COOKBOOK_DIR = "#{ENV['OPSCODE_SRC']}/opscode-dev-vm/cookbooks"
cookbook "piab", path: "#{DEV_VM_COOKBOOK_DIR}/piab"
cookbook "estatsd", path: "#{DEV_VM_COOKBOOK_DIR}/estatsd"
cookbook "graphite", path: "#{DEV_VM_COOKBOOK_DIR}/graphite"
cookbook "gunicorn", path: "#{DEV_VM_COOKBOOK_DIR}/gunicorn"
# This is my fork of the gdash cookbook from the community site
# (needed to fix a small bug); we have a home-grown gdash in
# preprod, but I've run into some issues using it. We only really
# want it here to test out the Bifrost dashboards, so it's not
# necessary that it be exactly the same as in prod.
cookbook "gdash", github: "christophermaier/chef-gdash", branch: "fix_config"
# Use the community unicorn cookbook too for simplicity... again,
# this is just for testing out dashboards
cookbook "unicorn", site: :opscode
end