Hello folks, Can someone confirm for me that useradd.rb in the 0.24 series doesn''t work quite right? 18 end 19 20 has_features :manages_homedir, :allows_duplicates 21 22 if Puppet.features.libshadow? ... 37 if @resource.allowdupe? 38 cmd << "-o" 39 end 40 41 if @resource.managehome? 42 cmd << "-m" 43 elsif %w{Fedora RedHat}.include?(Facter.value("operatingsystem")) 44 cmd << "-M" 45 end According to type/user.rb, managehome maps on to provider.class.manages_homedir, so specifying a user on a RHEL box should create the home directory. However, it''s not doing that for me, but I''m fairly sure it worked in 0.23. I just realized a user that''s configured as: @user { mycron: allowdupe => false, comment => "Internal Cron User", shell => "/bin/bash", uid => "mycron", uid => 505, managehome => true, } and no home directory was created, implying that -M was used to override login.defs. (Side note, how does allowdupe map on to allows_duplicates?) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Duncan Hill wrote: | Hello folks, | | Can someone confirm for me that useradd.rb in the 0.24 series doesn''t | work quite right? | | Perhaps - http://reductivelabs.com/trac/puppet/ticket/1099. Regards James Turnbull - -- James Turnbull (james@lovedthanlost.net) - -- Author of: - - Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) - - Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) - - Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH9NtR9hTGvAxC30ARAhUyAKC7JpasLkpDVxT7gRlO1kAOeWFyrACfUjgg XSJP3NVSOXBwBL6ADSh+uYg=jogD -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Do you have SELinux enabled? When starting puppet from init.d with SELinux enabled it runs in xinitrc_t while it should (at least imo) run in unconfined_t. Running in xinitrc_t lead to *really* strange things. Everything way fixed once I deployed a policy that made puppetd run in unconfined_t. After all we''re just migrating from 0.23.2 to 0.24.4 - I haven''t added a user with 0.24.4 so far, so I can''t tell you if there are any issues. Regards, Andreas Duncan Hill schrieb:> Hello folks, > > Can someone confirm for me that useradd.rb in the 0.24 series doesn''t > work quite right? > > 18 end > 19 > 20 has_features :manages_homedir, :allows_duplicates > 21 > 22 if Puppet.features.libshadow? > > ... > > 37 if @resource.allowdupe? > 38 cmd << "-o" > 39 end > 40 > 41 if @resource.managehome? > 42 cmd << "-m" > 43 elsif %w{Fedora > RedHat}.include?(Facter.value("operatingsystem")) > 44 cmd << "-M" > 45 end > > According to type/user.rb, managehome maps on to > provider.class.manages_homedir, so specifying a user on a RHEL box > should create the home directory. However, it''s not doing that for > me, but I''m fairly sure it worked in 0.23. I just realized a user > that''s configured as: > @user { > mycron: > allowdupe => false, > comment => "Internal Cron User", > shell => "/bin/bash", > uid => "mycron", > uid => 505, > managehome => true, > } > and no home directory was created, implying that -M was used to > override login.defs. > > (Side note, how does allowdupe map on to allows_duplicates?) > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com > To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en > -~----------~----~----~----~------~----~------~--~--- >-- Solvention Egermannstr. 6-8 53359 Rheinbach Tel: +49 2226 158179-0 Fax: +49 2226 158179-9 http://www.solvention.de mailto:info@solvention.de
On 03/04/2008, James Turnbull <james@lovedthanlost.net> wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > Duncan Hill wrote: > | Hello folks, > | > | Can someone confirm for me that useradd.rb in the 0.24 series doesn''t > | work quite right? > | > | > > Perhaps - http://reductivelabs.com/trac/puppet/ticket/1099.Doh. Yep, I added managehome after the fact. Delete of user = properly created home next time around. Sorry for the noise. Andreas - No, we don''t use selinux on these machines. Causes way too much havoc with user workstations, and I haven''t got the hours in the day to work on custom policies. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---