Hi, Many thanks for your reply! I will help me a lot J It is soooo easy :D regards From: Daniel DeLeo [mailto:
On Behalf Of Daniel DeLeo On Monday, March 7, 2011 at 11:32 PM, WEINHAPL Andreas wrote:
Probably the best way to go about this is to have a single maintenance cookbook which will selectively include recipes based on platform. It'd look something like this: case node.platform when :debian include_recipe("maintenance::debian") when :ubuntu include_recipe("mainentance::ubuntu") else # ... end The other option, if you already have the nodes in chef, is to use shef or a knife exec script to search for the nodes by platform and edit their run lists programmatically. There's a bit of documentation here: http://wiki.opscode.com/display/chef/Shef#Shef-ManagingChefServerwithShef but the most comprehensive documentation is available by running shef and using the `help` command. In particular, you want to use the `nodes.transform` command.
HTH, -- |
Archive powered by MHonArc 2.6.16.