-
Notifications
You must be signed in to change notification settings - Fork 0
/
Berksfile
33 lines (26 loc) · 1006 Bytes
/
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
branch = 'master'
sheer_git_url = '[email protected]:/xianfengyuan'
sheer_cookbooks = "
runit
dreambuilder
".split
# Include Opsworks Cookbooks
opsworks_cb_path = '/opt/aws/opsworks/current/cookbooks'
opsworks_cookbooks = Dir[opsworks_cb_path + '/*'].select { |f| File.directory?(f) }.map { |f| File.basename(f) }
# Remove any opsworks cookbooks that we use
opsworks_cookbooks -= sheer_cookbooks
# Get all of the opworks cookbooks
opsworks_cookbooks.each do |cb|
cookbook(cb, path: File.join(opsworks_cb_path, cb))
end
# For any custom branches (Left as an example for specifying custom cookbooks)
# custom_branch = 'sheerdev'
# custom_cookbooks = %w(sheerapp)
# sheer_cookbooks -= custom_cookbooks
# custom_cookbooks.each do |thiscookbook|
# cookbook(thiscookbook, git: sheer_git_url + '/chef_' + thiscookbook, branch: custom_branch)
# end
# Get all sheer cookbooks
sheer_cookbooks.each do |thiscookbook|
cookbook(thiscookbook, git: sheer_git_url + '/chef_' + thiscookbook, branch: branch)
end