Joe is right, you need to generate the group(s), before you generate
the user(s), before you setup their homedirectory.

For example:
        group
        { "ldap":
                gid       => 294,
                before    => User["ldap"],
        }

        user
        { "ldap":
                uid       => 294,
                gid       => 294,
                comment   => "Ldap Processor",
                home      => "/home/ldap",
                shell     => "/bin/sh",
        }

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

It doesn't help with your original issue of passing the array (though
i believe Silviu has that covered), but hopefully it helps a little :)

PS yes i realise what a pain having non standard LDAP uid and gid can
be.

Cheers
chakkerz

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

Reply via email to