[chef] [Chef] Attribute precedence and Persistence issue.


Chronological Thread 
  • From: Mrigesh Priyadarshi < >
  • To: , mrigesh priyadarshi < >
  • Subject: [chef] [Chef] Attribute precedence and Persistence issue.
  • Date: Fri, 22 Nov 2013 09:21:13 +0530

Hello,

I am working on a requirement which states that a particular version of a software needs to be installed on a VM and the version could be changed as per the user requirement.

I thought to put the default value in attribute and let it be overridden by the JSON attrib which can be passed on run time. It works fine but it starts cribbing the moment i dont pass the the JSON attrib in next run, in the ideal scenario the attribute should fall back to Attribute file to take the value.
But in this case it is taking up the value persisted on node which we passed in the JSON attrib.

I tried to use normal and override in attribute file but in that case it ignores the JSON attribs.

Can someone please guide me.

Warm Regards,

Mrigesh Priyadarshi
Mob:-+91-720-402-2510
             



Archive powered by MHonArc 2.6.16.

§