- From: Matt Ray <
>
- To: "
" <
>
- Subject: [chef] RE: Modifying node run list from within a recipe?
- Date: Tue, 27 Aug 2013 14:17:37 +0000
- Accept-language: en-US
Why not just key off an attribute to decide whether or not to do
recipe_includes? Here's an example:
https://github.com/opscode-cookbooks/java/blob/master/recipes/default.rb#L21
You could wrap that in any sort of conditional Ruby logic you want.
Thanks,
Matt Ray
Cloud Integrations Product Lead :: Opscode
512.731.2218 ::
mattray :: GitHub :: IRC :: Twitter
________________________________________
From: Brad Knowles
<
>
Sent: Tuesday, August 27, 2013 9:05 AM
To:
Cc: Brad Knowles
Subject: [chef] Modifying node run list from within a recipe?
Folks,
So, I've done some searching through the documents, and searching through the
archives, and feeding various terms into Google, and I'm still coming up
empty.
In short, I know that I could do a "knife node run_list add" from within a
recipe, but I figure there has to be a better way to do this from within Ruby
itself, and which doesn't involve dependency on a tool that shouldn't have to
be installed on every single node that might run some random application.
I must be missing something obvious, but I don't know what it is. Any and
all assistance or pointers you can provide will be greatly appreciated.
Thanks!
--
Brad Knowles
<
>
LinkedIn Profile: <
http://tinyurl.com/y8kpxu>
Archive powered by MHonArc 2.6.16.