Skip to content

Instantly share code, notes, and snippets.

@Staggerlee011
Created November 21, 2017 10:18
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 Staggerlee011/81328fc48a94b24bf0830dbff8664ddf to your computer and use it in GitHub Desktop.
Save Staggerlee011/81328fc48a94b24bf0830dbff8664ddf to your computer and use it in GitHub Desktop.
Collection of Chef run_list commands
## list the run_lists on a node
knife node run_list list <NODE> -r
## Set a run_list
knife node run_list <NODE> 'recipe[iis]'
## Add an item before
knife node run_list add <NODE> recipe[basicconfig::join_ad] -b recipe[iis]
## Add an item after
knife node run_list add <NODE> recipe[website1::config] -a recipe[iis]
## remove a run_list item
knife node run_list remove <NODE> recipe[website1::config]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment