- From: "David A. Williams" <
>
- To: "
" <
>
- Subject: [chef] Wrapper Cookbook Attribute Overwrite Question
- Date: Thu, 12 Jun 2014 11:15:02 -0500
- Accept-language: en-US
- Acceptlanguage: en-US
Hello,
Chef 11.2.4
I'm setting up a wrapper cookbook to overwrite some node attributes. However
it appears when that attribute is a hash it runs both configs. Has anyone
experienced this?
For example in my base cookbook, I have
attributes/default.rb
default['operations']['tomcat_instances'] = {:Dev => { :port => '80',
:sites => %w[Dev] }}
And in my wrapper cookbook, I have
recipes/raven_server.rb
node.set['operations']['tomcat_instances'] = {:QA=> { :port => '80', :sites
=> %w[Master Staging] }}
After the chef run. I have two Tomcat instances set up instead of just one.
Thanks for your help,
David Williams
________________________________
CONFIDENTIALITY NOTICE: This electronic mail may contain information that is
privileged, confidential, and/or otherwise protected from disclosure to
anyone other than its intended recipient(s). Any dissemination or use of this
electronic mail or its contents by persons other than the intended
recipient(s) is strictly prohibited. If you have received this communication
in error, please notify the sender immediately by reply e-mail so that we may
correct our internal records. Please then delete the original message. Thank
you.
- [chef] Wrapper Cookbook Attribute Overwrite Question, David A. Williams, 06/12/2014
Archive powered by MHonArc 2.6.16.