- From: Adam Jacob <
>
- To:
- Subject: [chef] Re: Selective inclusion of attribute files
- Date: Wed, 25 May 2011 21:06:39 -0700
On May 25, 2011, at 4:56 PM, Jason J. W. Williams wrote:
>
If I have two attribute files (server_type_a.rb and server_type_b.rb)
>
how can I ensure that recipes/default.rb only uses
>
attributes/server_type_a.rb and recipes/server_b.rb only uses
>
attributes/server_type_b.rb?
If you really want this, you can check to see if the current node has a
role/recipe/tag applied inside the attribute files.
A better way, though, would be to use a role for this - have a single
attribute file that sets a sane default, and a role for server_type_a and
server_type_b.
Best,
Adam
Archive powered by MHonArc 2.6.16.