Matt Hargrave
2013-Apr-19 18:58 UTC
[Puppet Users] Attributes in user resource causing an error (PE 2.8.1)
I am trying to use the attributes field for AIX user attributes. I currently have: user { "test1": ensure => present, uid => ''123456'', gid => ''system'', shell => ''/bin/ksh'', home => ''/home/test1'', attributes => ["login=true", "rlogin = true"], managehome => true, } when I apply this I get err: /Stage[main]//User[test1]: Could not evaluate: private method `select''> called for nil:NilClass >I have tried to just have a single attribute with and without the brackets []. As soon as a remove that field everything else works. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Nick Lewis
2013-Apr-19 20:32 UTC
[Puppet Users] Re: Attributes in user resource causing an error (PE 2.8.1)
On Friday, April 19, 2013 11:58:27 AM UTC-7, Matt Hargrave wrote:> > I am trying to use the attributes field for AIX user attributes. I > currently have: > > user { "test1": > ensure => present, > uid => ''123456'', > gid => ''system'', > shell => ''/bin/ksh'', > home => ''/home/test1'', > attributes => ["login=true", "rlogin = true"], > managehome => true, > } > > > > when I apply this I get > > err: /Stage[main]//User[test1]: Could not evaluate: private method >> `select'' called for nil:NilClass >> > > I have tried to just have a single attribute with and without the brackets > []. As soon as a remove that field everything else works. > > >From the code, it looks like this needs to be specified as a hash. Could you try that and let me know if it works? Strangely enough, there seems to be some code which complains if it''s not a hash, but does so by telling you it needs to be a list of key=value pairs. That should definitely be fixed, at least. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Matt Hargrave
2013-Apr-22 15:09 UTC
[Puppet Users] Re: Attributes in user resource causing an error (PE 2.8.1)
as a hash ( attributes => { ''rlogin'' => ''true''} , or attributes => { rlogin => ''true''} ) I get: Parameter attributes failed on User[test1]: Attributes value pairs must be separated by an = at /home/xxx/puppet/test.pp:9 if I replace the => with = I get: Could not parse for environment production: Syntax error at ''=''; expected ''}'' at /home/xxx/puppet/test.pp:7 on node client1 On Friday, April 19, 2013 1:58:27 PM UTC-5, Matt Hargrave wrote:> > I am trying to use the attributes field for AIX user attributes. I > currently have: > > user { "test1": > ensure => present, > uid => ''123456'', > gid => ''system'', > shell => ''/bin/ksh'', > home => ''/home/test1'', > attributes => ["login=true", "rlogin = true"], > managehome => true, > } > > > > when I apply this I get > > err: /Stage[main]//User[test1]: Could not evaluate: private method >> `select'' called for nil:NilClass >> > > I have tried to just have a single attribute with and without the brackets > []. As soon as a remove that field everything else works. > > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.