37signals user cookbook question

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

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.

Joshua Sierles
37signals

On Sun, Jun 28, 2009 at 10:28 AM, Joshua Sierlesjoshua@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

On Sun, Jun 28, 2009 at 10:28 AM, Joshua Sierlesjoshua@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.

Hey Joshua,

Any word on the cookbook release? It would be at
http://github.com/37signals/37s_cookbooks/commits/, right? Looking
forward to using it!

Thanks,
Joe