Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Created September 26, 2011 16:53
Show Gist options
  • Save jtimberman/1242718 to your computer and use it in GitHub Desktop.
Save jtimberman/1242718 to your computer and use it in GitHub Desktop.
Put this in the config file (/etc/chef/client.rb, ~/.chef/knife.rb, etc)
confd = File.join(File.dirname(__FILE__), "conf.d", "*.rb")
clientd = File.join(File.dirname(__FILE__), "client.d", "*.rb")
[ Dir.glob(confd), Dir.glob(clientd) ].each do |confs|
confs.each {|f| Chef::Config.from_file(f)}
end
# This is the content of an included config file.
node_name 'MYUSER'
chef_server_url 'https://api.opscode.com/organizations/MYORG'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment