I am using the user type function as below to create and manage user accounts in RHEL, CentOS, Ubuntu, FreeBSD & BSD, I have only tried on RHEL, CentOS it works fine for user creation, but not managing homedirectory. I ran puppetd -test in Ubuntu it showed the below message in debug mode Ubuntu(Debian), don''t create homedirectory unless -m arg is passed. [0;34mdebug: User[user1](provider=useradd): Executing ''/usr/sbin/useradd -u 3100 -d /home/user1 -g 4000 -s /bin/bash -c user1 user1''^[[0m define fssn_user ($group, $fullname, $uid) { user { "$name": #ensure => absent, #-- To remove a user ensure => present, comment => "$fullname", gid => "$group", groups => $ingroups, membership => minimum, uid => "$uid", shell => "/bin/bash", home => "/home/$name", managehome => true } } Any view is appreciated. -- Deepak _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Oct 18, 2007, at 12:36 PM, Deepak Naidu wrote:> I am using the user type function as below to create and manage > user accounts in RHEL, CentOS, Ubuntu, FreeBSD & BSD, > > I have only tried on RHEL, CentOS it works fine for user creation, > but not managing homedirectory. > > I ran puppetd –test in Ubuntu it showed the below message in debug > mode > > Ubuntu(Debian), don’t create homedirectory unless –m arg is passed. > > [0;34mdebug: User[user1](provider=useradd): Executing ''/usr/sbin/ > useradd -u 3100 -d /home/user1 -g 4000 -s /bin/bash -c user1 user1''^ > [[0mI just looked at the code and it should work for you; maybe you''re using an older version? -- On Bureaucracy.... The Pythagorean theorem contains 24 words. Archimedes Principle, 67. The Ten Commandments, 179. The American Declaration of Independence, 300. And recent legislation in Europe concerning when and where to smoke, 23,942. -- The European, June 23-29, 1995 --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
I am using, I hope the latest version puppet-0.23.2-1.el4 puppet-server-0.23.2-1.el4 -- Deepak -----Original Message----- From: puppet-users-bounces@madstop.com [mailto:puppet-users-bounces@madstop.com] On Behalf Of Luke Kanies Sent: Friday, October 19, 2007 11:16 AM To: Puppet User Discussion Subject: Re: [Puppet-users] Managehome not working in User type in Linux OS On Oct 18, 2007, at 12:36 PM, Deepak Naidu wrote:> I am using the user type function as below to create and manage > user accounts in RHEL, CentOS, Ubuntu, FreeBSD & BSD, > > I have only tried on RHEL, CentOS it works fine for user creation, > but not managing homedirectory. > > I ran puppetd -test in Ubuntu it showed the below message in debug > mode > > Ubuntu(Debian), don''t create homedirectory unless -m arg is passed. > > [0;34mdebug: User[user1](provider=useradd): Executing ''/usr/sbin/ > useradd -u 3100 -d /home/user1 -g 4000 -s /bin/bash -c user1 user1''^ > [[0mI just looked at the code and it should work for you; maybe you''re using an older version? -- On Bureaucracy.... The Pythagorean theorem contains 24 words. Archimedes Principle, 67. The Ten Commandments, 179. The American Declaration of Independence, 300. And recent legislation in Europe concerning when and where to smoke, 23,942. -- The European, June 23-29, 1995 --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Oct 19, 2007, at 1:49 PM, Deepak Naidu wrote:> I am using, I hope the latest version > > puppet-0.23.2-1.el4 > puppet-server-0.23.2-1.el4Yes, that''s the latest version. There must be something else in your configuration; maybe you could try a stand-alone ''puppet'' script with that user, to verify whether managehome is working? -- Brand''s Shortcut: The only way to predict the future is to make sure it stays exactly the same as the present. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com