Information Technology Reference
In-Depth Information
However, if you perform a recipe: search for, say, the recipe[apache::config] , you
might not get the results you intended:
$ knife search node "recipe:apache"
2 items found
Node Name: atwood
...
Node Name: susu
...
Notice when the reference to "role[webserver]" is expanded, snowman does have "re-
cipe[apache]" in its run list. But it doesn't have "recipe[apache]" directly in its run list
if it is not expanded. So, snowman does not show up in the search results because the recipe
search does not expand the node's run list.
NOTE
Similar to the square bracket characters ([]), the colon (::) characters in a cookbook recipe
reference must be individually escaped on a command line with the backslash (\) charac-
ter: chef-client\:\:config . This is treated as if it were chef-client::config .
If you want to fully expand all the recipe references in a run list, perform a recipes: search
instead. Then snowman shows up in the search results:
$ knife search node "recipes:apache"
3 items found
Node Name: atwood
...
Node Name: snowman
...
Node Name: susu
...
There are similar search commands with expansion for roles as there are for recipes:
Search WWH ::




Custom Search