Skip to content

Commit

Permalink
Merge branch 'master-chef-11.10' of ssh://git.amazon.com:2222/pkg/Cha…
Browse files Browse the repository at this point in the history
…rlieCookbooks into master-chef-11.10
  • Loading branch information
jbraeuer committed Mar 14, 2014
2 parents 3952933 + 6325164 commit 84e1f11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion opsworks_custom_cookbooks/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
default[:opsworks_custom_cookbooks][:user] = 'root'
default[:opsworks_custom_cookbooks][:group] = 'root'
default[:opsworks_custom_cookbooks][:home] = '/root'
default[:opsworks_custom_cookbooks][:destination] = ChefClientConfigSimpleParser.get_attribute(Chef::Config[:config_file], 'cookbook_path').select{|dir| dir =~ /site-cookbooks/}.first
normal[:opsworks_custom_cookbooks][:destination] = OpsworksInstanceAgentConfig.get_site_cookbooks_dir

default[:opsworks_custom_cookbooks][:recipes] = []

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module OpsworksInstanceAgentConfig
require 'yaml'

def self.get_site_cookbooks_dir
agent_config = YAML.load_file('/etc/aws/opsworks/instance-agent.yml')
agent_config[:site_cookbooks_dir]
end
end

0 comments on commit 84e1f11

Please sign in to comment.