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+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.
Throwe, Jesse
2013-Feb-05 15:21 UTC
Re: [Puppet Users] Creating users and group with same name
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 <abhijeet.1989@gmail.com> 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+unsubscribe@**googlegroups.com<puppet-users%2Bunsubscribe@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<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 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.
Abhijeet Rastogi
2013-Feb-05 16:01 UTC
Re: [Puppet Users] Creating users and group with same name
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 <abhije...@gmail.com<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 puppet...@googlegroups.com<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 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.
John Julien
2013-Feb-06 02:24 UTC
Re: [Puppet Users] Creating users and group with same name
This appears to be a bug. I''ve opened a ticket for resolution. https://projects.puppetlabs.com/issues/19090 You can work around it by specifying the group in your user resource. #puppet resource user logstash ensure=present gid=logstash On Feb 5, 2013, at 10:01 AM, Abhijeet Rastogi <abhijeet.1989@gmail.com> wrote: 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 <abhije...@gmail.com> 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. To post to this group, send email to puppet...@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. -- 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. -- 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.