[chef] Re: Re: 37signals user cookbook question


Chronological Thread 
  • From: Joe Van Dyk <joe@fixieconsulting.com>
  • To: chef@lists.opscode.com
  • Subject: [chef] Re: Re: 37signals user cookbook question
  • Date: Sun, 28 Jun 2009 15:50:21 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=CeiSb8u+KMATiysny0yxlY8Vt5f5HPXKnbr3hb18Q55EvZUyXpGoNk2MQSh6xWrp39 KecTMyepid2YMyyEdMRqFfA/2HJUngkwFzY5YCsryV0+7xVidbuHUpLniRh3CUoIyxdU vNr01rcuCV96VRG/c0eas3w75wLWy4chTZ/9E=

On Sun, Jun 28, 2009 at 10:28 AM, Joshua Sierles<joshua@37signals.com> wrote:
>
> On Jun 28, 2009, at 4:18 AM, Joe Van Dyk wrote:
>
>> I created a 'postgresql' role and added my node to it via the web ui.
>>
>> I added the 'postgresql' role to this file:
>>
>http://github.com/37signals/37s_cookbooks/blob/da924ccc7e578ebd24c9bef0b95aa5436da77bac/cookbooks/users/attributes/default.rb
>>
>> However, I'm getting a "add role to this node" exception raised from
>> line 1 on this file:
>>
>http://github.com/37signals/37s_cookbooks/blob/da924ccc7e578ebd24c9bef0b95aa5436da77bac/cookbooks/users/recipes/default.rb
>>
>> Is that recipe out of date?  I'm running 0.7.4.
>>
>> Joe
>
> Joe,
>
> All of these recipes are out of date and don't reflect our changes for the
> 0.7 roles feature. We'll be updating them next week with our whole new
> roles-based setup. Meanwhile you can simply remove the 'raise' from the top
> of the second file you referenced.

Awesome, glad to hear it.  The sooner you can push out those recipes,
the better.  (or would you be willing to send me the updated ssh_key
and user cookbooks via email?)

When I comment out that line, then later on, on this line:
   role[:groups].each do |group_name|

role is nil, and it kabooms.

Joe



Archive powered by MHonArc 2.6.16.

§