Thank you. It real help for me/ now I use user { $username: ensure => present, home => "$home/$username", shell => "/bin/bash", gid => $username, groups => ['wheel','users'], comment => "$uname", password => "$hash"; }
Sorry for late reply. On Nov 17, 9:01 pm, Nan Liu <n...@puppetlabs.com> wrote: > On Wed, Nov 17, 2010 at 4:00 AM, Leonko <the.leo...@gmail.com> wrote: > > Hello, I have problem with creating user under centos: > > > part of my class: > > > user {jboss: > > ensure => present, > > home => "$jboss_home", > > shell => "/bin/bash", > > groups => jboss, > > } > > If it's the primary group use gid instead of groups. > > user {jboss: > ensure => present, > home => "$jboss_home", > shell => "/bin/bash", > gid => jboss, > } > > Thanks, > > Nan -- 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.