Query: knife-exec
OS: debian
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
KNIFE-EXEC(1) Chef Manual KNIFE-EXEC(1)NAMEknife-exec - Run user scripts using the Chef API DSLSYNOPSISknife exec (options) -E, --exec CODE Provide a snippet of code to evaluate on the command lineDESCRIPTIONknife exec runs arbitrary ruby scripts in a context similar to that of the shef(1) DSL. See the shef documentation for a description of the commands available.EXAMPLESMake an API call against an arbitrary endpoint knife exec -E 'api.get("nodes/fluke.localdomain/cookbooks")' => list of cookbooks for the node fluke.localdomain Remove the role obsolete from all nodes knife exec -E 'nodes.transform(:all){|n| n.run_list.delete("role[obsolete]")}' Generate the expanded run list for hosts in the webserver role knife exec -E 'nodes.find(:roles => "webserver") {|n| n.expand!; n[:recipes]}'SEE ALSOshef(1)AUTHORChef was written by Adam Jacob adam@opscode.com with many contributions from the community.DOCUMENTATIONThis manual page was written by Joshua Timberman joshua@opscode.com. Permission is granted to copy, distribute and / or modify this docu- ment under the terms of the Apache 2.0 License.CHEFKnife is distributed with Chef. http://wiki.opscode.com/display/chef/Home Chef 10.12.0 June 2012 KNIFE-EXEC(1)
Related Man Pages |
---|
knife-client(1) - debian |
knife-cookbook(1) - debian |
knife-node(1) - debian |
knife-status(1) - debian |
knife(1) - debian |
Similar Topics in the Unix Linux Community |
---|
exec unable to run via cronjob |
unexpected pipeline result with find -exec |
Segmenatation fault |
How to run multiple piped commands in a find -exec statement? |
[Solved] weird in find -exec command |