puppet not creating users?

162 views
Skip to first unread message

Grzegorz Marszałek

unread,
Oct 16, 2008, 6:37:52 AM10/16/08
to puppet...@googlegroups.com
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
gr...@post.pl


Grzegorz Marszałek

unread,
Oct 16, 2008, 6:40:28 AM10/16/08
to puppet...@googlegroups.com
Ok, silly me...

Users are there - defined in ldap... Sorry for nosie :)
>

---
Grzegorz Marszałek
gr...@post.pl


Reply all
Reply to author
Forward
0 new messages