On Mar 21, 3:15 pm, Brian Gallew <[email protected]> wrote:
> It has occurred to me that another way of doing this would be to use defines
>
>   define kludge($sudo_add_rule=undef) {
>     node { "${name}":
>         class {sudoers: additional_rules => [$sudo_add_rule}}
>      }  
>   }
>
> The beauty of this is that it gets around the traditional problem of node 
> inheritance: that including classes in any inherited node requires adding 
> extra helper classes just to enable value overrides.

Does it actually work to declare a node inside a define?  I wouldn't
have expected so, but if it does then that might prove useful to know.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to