[chef] Re: Re: Re: How do I change cookbook dynamically


Chronological Thread 
  • From: mayank verma < >
  • To:
  • Subject: [chef] Re: Re: Re: How do I change cookbook dynamically
  • Date: Thu, 14 Feb 2013 15:54:13 +0530

@Ranjib
i already stored the values in the variables through rundeck-api,  now i want to pass those value in existing cookbook & update attribute file's variable at runtime.



On Thu, Feb 14, 2013 at 2:53 PM, Andrea Campi < " target="_blank"> > wrote:
+1

I find that building an external API server that eg returns JSON, and then building a Chef library to consume that is often the easiest way to integrate with external systems.

If you make it look somewhat like a data bag, that makes it easy and flexible.
why not treat them as variables? and grab them via some web api call? I have done similar stuff where i fetched artifact/build details from teamcity using teamcity API,



On Wed, Feb 13, 2013 at 11:17 PM, mayank verma < " target="_blank"> > wrote:
Hello folks,

Scenario :

Having variables like artifacts & version with values, getting from a run-deck job.
I need to dynamically change an existing cookbook artifacts file's variable values
with value getting from a run-deck job . How do I change this ?

Please suggest.

Thanks,
Mayank





--
Regards
Mayank Verma
mob: 7829775425
RHCE






Archive powered by MHonArc 2.6.16.

§