Skip to content
Snippets Groups Projects
Commit 1b7da4ad authored by jat's avatar jat Committed by Pablo Carranza
Browse files

current best practice is actually tips

parent ff598650
No related branches found
No related tags found
1 merge request!247Document the gitlab way we use chef
Loading
Loading
@@ -119,7 +119,8 @@ 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)
* [Best practices](howto/chef-best-practices.md)
* [Tips](howto/chef-tips.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.
### Update IP of chef node
Create or update file `/etc/ipaddress.txt` with desired IP address (or run `curl ifconfig.co | sudo tee /etc/ipaddress.txt`) and run chef-client.
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