I don't even have it installed. Thing is, I can add the user by using "-g". But, why is puppet not able to do so, that's what is wondering me.
On Tuesday, February 5, 2013 8:51:37 PM UTC+5:30, Jesse Throwe wrote: > > Generally when I see weird errors like this with users/group nscd has > gotten in my way. Might be worth disabling nscd (and making sure its > really off) then trying this again. > > > On Tue, Feb 5, 2013 at 9:33 AM, shadyabhi <[email protected]<javascript:> > > wrote: > >> Hi, >> >> This is precisely what I am observing. >> >> [root@index11 ~]# puppet resource group logstash ensure=present >> notice: /Group[logstash]/ensure: created >> group { 'logstash': >> ensure => 'present', >> } >> [root@index11 ~]# puppet resource user logstash ensure=present >> err: /User[logstash]/ensure: change from absent to present failed: Could >> not create user logstash: Execution of '/usr/sbin/useradd -M logstash' >> returned 9: useradd: group logstash exists - if you want to add this user >> to that group, use -g. >> >> user { 'logstash': >> ensure => 'absent', >> } >> [root@index11 ~]# >> >> How do I fix this? I want to avoid not using execs. :) >> >> Thanks. >> >> -- >> Cheers, >> Abhijeet R >> http://blog.abhijeetr.com >> >> -- >> 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...@**googlegroups.com <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at >> http://groups.google.com/**group/puppet-users?hl=en<http://groups.google.com/group/puppet-users?hl=en> >> . >> For more options, visit >> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >> . >> >> >> > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
