Inspecting files on your Chef server with knife
Sometimes, you may want to peek into the files stored on your Chef server. You might not be sure about an implementation detail of that specific cookbook version, which is currently installed on your Chef server, and need to look it up. Knife can help you out by letting you show various aspects of the files stored on your Chef server.
Getting ready
Make sure that you have the iptables
cookbook installed locally and uploaded on your Chef server.
- Install the iptables community cookbook by executing the following command and code lines:
mma@laptop:~/chef-repo $ knife cookbook site install iptables
Installing iptables to /Users/mma/work/chef-repo/cookbooks ...TRUNCATED OUTPUT...
Tip
Take a look at the following ...
Get Chef Infrastructure Automation Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.