Simply add to your recipepackage "os-package-name"2012/1/16 Tom < " target="_blank"> >
Hi,
For our developer boxes, typically the users won't know chef, and won't have a locally configured knife, and these guys would be used to installing tomcat or some package using the distro specific tool (apt/yum/emerge).
However for a bunch of packages/services we have chef recipes specifically to get tomcat6 or others onto CentOS 5.6 boxes e.g. recipe[tomcat::tomcat6]
Obviously its possible to create a /etc/chef/tomcat.json file and run it as chef-client -j /etc/chef/tomcat.json such as
{ "run_list" : ["recipe[tomcat::tomcat6]"] }
Or even to open "shef -z" session and apply the recipe interactively. Or even to run knife as the chef-client user with the client.pem and client.rb file...
However I am looking for something that can be easily applied as a one-liner... does such a thing exist as a plugin for chef-client?
chef-client -r "recipe[somecookbook::somerecipe]" would be perfect... ;-)
Thanks
Tom
Archive powered by MHonArc 2.6.16.