[chef] Re: Re: Re: Re: Re: I want to implement env_attributes() in Chef roles


Chronological Thread 
  • From: DV < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: I want to implement env_attributes() in Chef roles
  • Date: Sun, 17 Nov 2013 18:51:41 -0800

Thanks Xabier! Unfortunately I don't know much about Chef to be able to patch it.. If I end up implementing this sort of feature, I'll go the route of writing a special recipe that looks at a special place containing environments and attributes. Then it overrides attributes with the ones it found, if applicable. Finally, I'll place that special recipe first thing in the runlist.


On Fri, Nov 15, 2013 at 10:30 AM, Xabier de Zuazo < " target="_blank"> > wrote:

 Hi DV,

On Thu, 14 Nov 2013 13:24:57 -0800
DV < "> > wrote:

[...]
> Xabier, if you have any code from your attempt you can share or point
> me to the right direction, I'd like to give it a try!
>

https://github.com/onddo/chef/tree/10.28.2-CHEF-3441

 I honestly don't remember how far I get. I rebased this against the
 las Chef 10 stable, but this code is more than a year old and is
 not tested, it may even be incomplete. Used the wrong way can destroy
 the space time continuum.

 If you want to test this with Chef 11, you will also need to patch
 erchef:

https://github.com/opscode/chef_db/blob/master/src/chef_otto.erl#L290
https://github.com/opscode/chef_wm/blob/master/src/chef_wm_malformed.erl#L122
https://github.com/opscode/chef_objects/blob/master/src/chef_role.erl#L70
[...]

 Regards,

--
Xabier de Zuazo Oteiza
IT System Administrator - Onddo Labs S.L.
www.onddo.com
--------------------------------------------------------------------
Public Key = http://www.onddo.com/xabier_zuazo.pub
Key Fingerprint = 8EFA 5B17 7275 5F1F 42B2  26B4 8E18 8B67 9DE1 9468
--------------------------------------------------------------------



--
Best regards, Dmitriy V.



Archive powered by MHonArc 2.6.16.

§