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. On Mar 21, 2011, at 11:28 AM, Ashley Gould wrote: > On Mon, Mar 21, 2011 at 04:23:40AM -0700, Bill Proud wrote: >> The following would work: >> >> node default { >> class { sudoers: } >> } >> >> node 'sl11lab02' { >> class { sudoers: additional_rules => [ "$rules_uas" ] } >> } >> > > This does work, but I lose inheritance from node default. > In fact, this is my current work around. > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.