Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Policyfiles and chef-apply/chef-run #145

Open
kmf opened this issue Nov 14, 2020 · 1 comment
Open

Policyfiles and chef-apply/chef-run #145

kmf opened this issue Nov 14, 2020 · 1 comment
Labels
Aspect: UX How users feel interacting with the project, focusing on function, ease-of-use and accessibility. Triage: Confirmed Indicates and issue has been confirmed as described. Triage: Feature Request Indicates an issue requesting new functionality.

Comments

@kmf
Copy link

kmf commented Nov 14, 2020

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
  • add dependancy datadog to install_datadog/metadata.rb
depends 'datadog'

  • add install code to install_datadog/recipes/default.rb
include_recipe 'datadog::dd-agent'

  • add attributes to install_datadog/attributes/default.rb
default['datadog']['api_key'] = '8uLllbAPTnxa39z42M'
default['datadog']['application_key'] = 'WlmB9RYwGzzhLHKn81'
default['datadog']['enable_process_agent'] = true

  • ensure you are in the right path
  • chef-run somehost.com install_datadog or chef-apply somehost.com install_datadog

With the Beauty of a Policyfile

  • chef generate policyfile install_datadog
  • add code to ONE file 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 or chef-apply somehost.com install_datadog.rb
@kmf kmf added the Status: Untriaged An issue that has yet to be triaged. label Nov 14, 2020
@marcparadise marcparadise added Aspect: UX How users feel interacting with the project, focusing on function, ease-of-use and accessibility. Triage: Confirmed Indicates and issue has been confirmed as described. Triage: Feature Request Indicates an issue requesting new functionality. and removed Status: Untriaged An issue that has yet to be triaged. labels Dec 22, 2020
@kmf
Copy link
Author

kmf commented Jan 11, 2021

@marcparadise thanks for the Labels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Aspect: UX How users feel interacting with the project, focusing on function, ease-of-use and accessibility. Triage: Confirmed Indicates and issue has been confirmed as described. Triage: Feature Request Indicates an issue requesting new functionality.
Projects
None yet
Development

No branches or pull requests

2 participants