[chef] Re: Re: Re: Re: question about data bags - best practice


Chronological Thread 
  • From: Kevin Christen < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: question about data bags - best practice
  • Date: Sat, 10 Aug 2013 07:52:59 -0500

Vladimir,

This previous post describes the approach I've taken to set a library cookbook's password attribute while preventing it from living on Chef server.

Thanks,
Kevin Christen


On Tue, Aug 6, 2013 at 10:27 AM, Vladimir Skubriev < " target="_blank"> > wrote:
On 06.08.2013 19:01, Daniel DeLeo wrote:
There is a hash on the node object you can use for per-run state info. It is not persisted to the server. To access it:

  node.run_state[:my_key] = "my value"

how can i link run_state attributes to mysql cookbook attributes ?

example:

node.run_state['mysql']['server_root_password'] = item['password']

then it is not persisted to the server ?

Who can access to node attributes on the server? In previous message i suggested that only node, which run their recipes.

Then why i must use node.run_state ?

is i am right ?



--
Best regards,

CVision Lab System Administrator
Vladmir Skubriev





Archive powered by MHonArc 2.6.16.

§