[chef] "yum install xxxx" or "apt-get install xxxx" analogy for chef?


Chronological Thread 
  • From: Tom < >
  • To:
  • Subject: [chef] "yum install xxxx" or "apt-get install xxxx" analogy for chef?
  • Date: Mon, 16 Jan 2012 13:38:03 +0000


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





  • [chef] "yum install xxxx" or "apt-get install xxxx" analogy for chef?, Tom, 01/16/2012

Archive powered by MHonArc 2.6.16.

§