Skip to content

Instantly share code, notes, and snippets.

@ocxo
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ocxo/53a3d5c1b3d52189e0e8 to your computer and use it in GitHub Desktop.
Save ocxo/53a3d5c1b3d52189e0e8 to your computer and use it in GitHub Desktop.
unless Chef::Config[:solo]
databag = Chef::EncryptedDataBagItem.load("credentials", "datadog")
node.default.datadog.api_key = databag['api_key']
include_recipe "datadog::dd-agent"
end
$ git grep -i datadog
Berksfile:cookbook "datadog", "~> 2.0.0"
metadata.rb:depends 'datadog'
recipes/datadog.rb: databag = Chef::EncryptedDataBagItem.load("credentials", "datadog")
recipes/datadog.rb: node.default.datadog.api_key = databag['api_key']
recipes/datadog.rb: include_recipe "datadog::dd-agent"
recipes/default.rb:include_recipe "base::datadog"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment