[chef] Re: Re: Re: Re: Overriding node attributes


Chronological Thread 
  • From: Sascha Bates < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Overriding node attributes
  • Date: Mon, 18 Feb 2013 13:36:32 -0600

Is it possible that node.set is no longer an alias for node.default.set in a recipe?  I've been having some of my own struggles recently with attributes but I've always operated on the idea that you have to use .set in a recipe if the attr is not previously defined.

So the next thing I'd try is just node.default.set if you have not previously defined the attribute elsewhere.

" type="cite">
" photoname="Yonah Russ" src="jpgQCz_HrwsFU.jpg" name="compose-unknown-contact.jpg" height="25px" width="25px">
February 18, 2013 4:58 AM
Ok- no go on either suggestion.
Using .default had no effect and the second idea resulted in:
FATAL: NoMethodError: Undefined node attribute or method `push' on `node'

Any other ideas?
Yonah


" photoname="Jesse Campbell" src="jpgQCz_HrwsFU.jpg" name="compose-unknown-contact.jpg" height="25px" width="25px">
February 17, 2013 3:36 PM
could try this also perhaps:

node.set['ipf_rules'][i]['src_nets'].delete(src_net)




" photoname="Jesse Campbell" src="jpgQCz_HrwsFU.jpg" name="compose-unknown-contact.jpg" height="25px" width="25px">
February 17, 2013 3:29 PM
which chef version?

try node.default instead of node.set or node.override?

i think there is more to it but thats' what came to mind first.



" photoname="Yonah Russ" src="jpgQCz_HrwsFU.jpg" name="compose-unknown-contact.jpg" height="25px" width="25px">
February 17, 2013 10:45 AM
Hi,




Archive powered by MHonArc 2.6.16.

§