Fixed manifest generation in user module for Puppet 2.6

This commit is contained in:
Ossi Salmi 2011-08-19 11:03:04 +03:00 committed by Timo Mkinen
parent bb0b107a07
commit 004854101a
2 changed files with 35 additions and 34 deletions

View file

@ -59,7 +59,7 @@ conn.search(basedn, LDAP::LDAP_SCOPE_SUBTREE, 'objectClass=posixAccount',
# create user class
if entry['uid'][0] !~ /.*\$.*/
print "class user::" + entry['uid'][0] + " inherits user::virtual {\n"
print " realize(Newuser['" + entry['uid'][0] + "'])\n"
print " realize(User::Newuser['" + entry['uid'][0] + "'])\n"
groups.each do |group|
print " realize(Group['" + group + "'])\n"
end