I'm hoping I'm just missing something simple.

I ran across this in my deployment setup and have replicated in a
simple set of manifests.  command output and the manifests below.

basically start with a user/group name but it had the name was
misspelled 'txuser'

so correct it to 'tuser' but puppet errors out saying the gid is a
dupe.

I thought one of the key ideas for puppet was the ability to define a
manifest and puppet would make the machine look like that manifest.

I checked the group resource documentation and didn't see an option to
say 'force' or something.

I'm thinking would also be a problem if someone locally edited /etc/
passwd and /etc/group the manifest would also fail.

====================================================================
[test00] ROOT 7:46pm Mon /tmp>puppet apply txuser.pp
notice: /Stage[main]//Group[txuser]/ensure: created
notice: /Stage[main]//User[txuser]/ensure: created
notice: Finished catalog run in 0.47 seconds
[test00] ROOT 7:47pm Mon /tmp>puppet apply tuser.pp
err: /Stage[main]//Group[tuser]/ensure: change from absent to present
failed: Could not create group tuser: Execution of '/usr/sbin/groupadd
-g 302 tuser' returned 4: groupadd: GID 302 is not unique

notice: /Stage[main]//User[tuser]: Dependency Group[tuser] has
failures: true
warning: /Stage[main]//User[tuser]: Skipping because of failed
dependencies
notice: Finished catalog run in 0.22 seconds
[test00] ROOT 7:47pm Mon /tmp>tail -n 100 txuser.pp tuser.pp
==> txuser.pp <==
  user { 'txuser':
    ensure           => 'present',
    comment          => 'Test User',
    gid              => '302',
    home             => '/home/tuser',
    password         => '***',
    password_max_age => '99000',
    password_min_age => '5',
    shell            => '/bin/tcsh',
    uid              => '302',
  }
  group { 'txuser':
    ensure => 'present',
    gid    => '302',
  }

==> tuser.pp <==
  user { 'tuser':
    ensure           => 'present',
    comment          => 'Test User',
    gid              => '302',
    home             => '/home/tuser',
    password         => '***',
    password_max_age => '99000',
    password_min_age => '5',
    shell            => '/bin/tcsh',
    uid              => '302',
  }
  group { 'tuser':
    ensure => 'present',
    gid    => '302',
  }

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to