Hi,

I assume that this is related to node inheritance and variable scoping:

http://docs.puppetlabs.com/guides/troubleshooting.html#node-inheritance-and-variable-scope

- Martin

On 18.07.2012, at 15:32, Rik Theys wrote:

> Hi,
> 
> I have a parametrised class to manage /etc/security/access.conf that accepts 
> an "entries" parameter.
> I've included this class in a generic node definition:
> 
> node common-node {
>   class{'pam_access':
>     entries => ["+ : ALL : ALL"],
>   }
> }
> 
> My real nodes inherit this node definition:
> 
> node 'test01' inherits common-node {
> }
> 
> How can I override this class parameter in the test01 node? I've tried setting
> 
> Class['pam_access'] {
>   entries => ["- : idiot : ALL" ],
> }
> 
> But it doesn't seem to have any effect. The initial settings remain active 
> and no error is logged.
> 
> How can I do this type of change with parametrised classes?
> 
> Regards,
> 
> Rik
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/puppet-users/-/Ju3_jRhGh78J.
> 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.

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