Skip to content
Snippets Groups Projects
Commit 87d9c2e6 authored by Marat Kalibekov's avatar Marat Kalibekov
Browse files

Best practices to work with chef

parent 2af0fcbf
No related branches found
No related tags found
1 merge request!172Best practices to work with chef
Loading
Loading
@@ -98,6 +98,7 @@ The aim of this project is to have a quick guide of what to do when an emergency
* [Speed up chefspec tests](howto/chefspec.md#tests-are-taking-too-long-to-run)
* [Retrieve old values in a Chef vault](howto/retrieve-old-chef-vault-values.md)
* [Manage Chef Cookbooks](howto/chef-documentation.md)
* [Best practices and tips](howto/chef-best-practices.md)
 
### Work with CI Infrastructure
 
Loading
Loading
## Chef best practices
### `role` vs `roles`
`knife (search|ssh|..) role:my-role ...` returns only nodes for which `my-role` is specified in their run_list, not nested ones.
`knife (search|ssh|..) roles:my-role ...` returns all nodes which has `my-role`, directly and nestly specified.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment