Hello!

My problem is - puppet is not creating users...
I've got class:
class admins {
   @user { "graf0":
        ensure => present,
        uid => 1500,
        comment => "Full name",
        home => "/home/graf0",
        managehome=> true,
        shell => "/bin/bash",
        password => 'SOMEVALIDSHADOWPW',
        tag => admin
        }
}

Then, in have following config:

class bb::new {
        # some includes...
        include "admins"
        User <| tag==admin or tag==tech |>
}

node "bb" {
        inlucde "bb::new"
}

Problem is - when I run puppetd, I get (output with --debug):

debug: User[graf0](provider=useradd): Executing '/usr/sbin/usermod -u  
1500 graf0'
err: //Node[bb.0000.i.dragonfly.pl]/bb::new/admins/User[graf0]/uid:  
change from 3000 to 1500 failed: Could not set uid on user[graf0]:  
Execution of '/usr/sbin/usermod -u 1500 graf0' returned 6: usermod:  
graf0 not found in /etc/passwd

debug: User[graf0](provider=useradd): Executing '/usr/sbin/usermod -p  
SOMEVALIDSHADOWPW graf0'
err: //Node[bb.0000.i.dragonfly.pl]/bb::new/admins/User[graf0]/ 
password: change from * to SOMEVALIDSHADOWPW failed: Could not set  
password on user[graf0]: Execution of '/usr/sbin/usermod -p  
SOMEVALIDSHADOWPW graf0' returned 6: usermod: graf0 not found in /etc/ 
passwd


I use puppet 0.24.5 on ubuntu hardy 8.04 (server).

It seems, that provider is not checking for user presence. Any ideas  
how to fix it?
---
Grzegorz Marszałek
[EMAIL PROTECTED]



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
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