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.1...@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%2bunsubscr...@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+unsubscr...@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.


Reply via email to