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


Chronological Thread 
  • From: Xabier de Zuazo < >
  • To:
  • Subject: [chef] Re: I want to implement env_attributes() in Chef roles
  • Date: Thu, 14 Nov 2013 21:49:50 +0100
  • Organization: Onddo Labs SL


 Hello DV,

On Thu, 14 Nov 2013 11:02:06 -0800
DV 
< >
 wrote:

[...]
> I want to have ability to specify something like the following in the
> role:
> 
> env_attributes(
>   "env-1" => {
>     "database" => {
>       "version" => "1.2.3"
>     }
>   },
>   "env-2" => {
>     "database" => {
>       "verison" => "1.2.1"
>     }
>   }
> )
> 
> My current solution is to use env_run_lists() to do this, but it's
> time-consuming as I have to create a new recipe each time I want to
> upgrade to new version.
> 
> Does that make sense? Would anyone know how I can go about
> implementing this role functionality?
> 

An old ticket related to this topic:

https://tickets.opscode.com/browse/CHEF-3441

I recommend you read the comments below. It seems that it would not be
advisable to use this feature in case of adding it to the core.

I started the implementation of this some time ago. It's actually quite
simple. But I didn't continue with it because it seemed that there was
no interest.

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
--------------------------------------------------------------------

Attachment: signature.asc
Description: PGP signature




Archive powered by MHonArc 2.6.16.

§