- From: Peter Donald <
>
- To: "
" <
>
- Subject: [chef] Re: Skip a recipe on a specific node
- Date: Fri, 16 Mar 2012 09:38:09 +1100
On Friday, March 16, 2012, Jesse Campbell <
">
> wrote:
> What is the best way to exclude running the remove validation key
> recipe on just the chef server node?
> I can think of a few ways to handle it:
> 1. Different role for the chef server that doesn't include that recipe
> 2. remove validation key in its own role
> 3. modify the validation key removal recipe to check for the existence
> of /etc/chef/server.rb and does nothing if it sees that file
>
> 1 means needing to remember to copy any additions to base into the
> chef server role
> 2 means remembering to include the remove validation key role every time
> 3 means modifying the cookbook as supplied
>
> I like 3 the best because it doesn't require anyone to remember
> something... but are there better options I'm not thinking of?
We tried other approaches but after a mistake that resulted in trauling through backups we ended up deciding 3 was the best approach. We also talked about supplying the recipe in the initial bootstrap and having it remove itself after it had completed but never went down that path
--
Cheers,
Peter Donald
Archive powered by MHonArc 2.6.16.