FAQ
Hi,

I changed code to:

         file { "/home/clavis":
                 ensure => "directory",
                 owner => "clavis",
                 group => "clavis",
                 mode => 700,
                 require => [ User[clavis], Group[clavis] ],
         }

         group { 'clavis':
                ensure => "present",
         }

         user { "clavis":
                 ensure => "present",
                 home => "/home/clavis",
                 name => "clavis",
                 shell => "/bin/bash",
                 managehome => true,
                 groups => 'clavis',
         }

(removed require => Group['clavis'])

but it is still the same. here is error message:

notice: /Stage[main]//Node[puppetclient2]/Group[clavis]/ensure: created
err: /Stage[main]//Node[puppetclient2]/User[clavis]/ensure: change from
absent to present failed: Could not create user clavis: Execution of
'/usr/sbin/useradd -d /home/clavis -s /bin/bash -G clavis -m clavis'
returned 9: useradd: group clavis exists - if you want to add this user to
that group, use -g.



Best regards,
Dušan


On Wed, May 22, 2013 at 12:19 PM, Dick Davies
wrote:
On 22 May 2013 09:43, Dusan Dordevic wrote:


groups => 'clavis',
you don't need this next line, it'll be auto-required.

require => Group['clavis']
--
You received this message because you are subscribed to a topic in the
Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/puppet-users/EkT8H779j4E/unsubscribe?hl=en
.
To unsubscribe from this group and all its topics, 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.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 10 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedMay 21, '13 at 12:39p
activeMay 22, '13 at 2:10p
posts10
users6
websitepuppetlabs.com

People

Translate

site design / logo © 2022 Grokbase