Open kmf opened 4 years ago
Running chef-run somehost.com my_policyfile.rb
chef-run somehost.com my_policyfile.rb
Using a wrapper cookbook is cumbersome in adhoc situations.
chef cookbook generate install_datadog
datadog
install_datadog/metadata.rb
depends 'datadog'
install_datadog/recipes/default.rb
include_recipe 'datadog::dd-agent'
install_datadog/attributes/default.rb
default['datadog']['api_key'] = '8uLllbAPTnxa39z42M' default['datadog']['application_key'] = 'WlmB9RYwGzzhLHKn81' default['datadog']['enable_process_agent'] = true
chef-run somehost.com install_datadog
chef-apply somehost.com install_datadog
chef generate policyfile install_datadog
install_datadog.rb
name 'install_datadog' default_source :supermarket run_list 'datadog::dd-agent' default['datadog']['api_key'] = '8uLllbAPTnxa39z42M' default['datadog']['application_key'] = 'WlmB9RYwGzzhLHKn81' default['datadog']['enable_process_agent'] = true
chef-run somehost.com install_datadog.rb
chef-apply somehost.com install_datadog.rb
@marcparadise thanks for the Labels
Describe the Enhancement:
Running
chef-run somehost.com my_policyfile.rb
Describe the Need:
Using a wrapper cookbook is cumbersome in adhoc situations.
Current Alternative
chef cookbook generate install_datadog
datadog
toinstall_datadog/metadata.rb
install_datadog/recipes/default.rb
install_datadog/attributes/default.rb
chef-run somehost.com install_datadog
orchef-apply somehost.com install_datadog
With the Beauty of a Policyfile
chef generate policyfile install_datadog
install_datadog.rb
chef-run somehost.com install_datadog.rb
orchef-apply somehost.com install_datadog.rb