Hi,
When you set managehome to false on a User ressource, homedir will
still be created on a CentOS box as the -M flag is not passed to
useradd.
$ diff -u /usr/lib/ruby/site_ruby/1.8/puppet/provider/user/
useradd.rb.bak \
/usr/lib/ruby/site_ruby/1.8/puppet/provider/user/useradd.rb
--- /usr/lib/ruby/site_ruby/1.8/puppet/provider/user/
useradd.rb.bak 2008-10-23 01:19:07.000000000 +0200
+++ /usr/lib/ruby/site_ruby/1.8/puppet/provider/user/useradd.rb
2009-02-24 15:25:35.000000000 +0100
@@ -31,7 +31,7 @@
cmd = []
if @resource.managehome?
cmd << "-m"
- elsif %w{Fedora RedHat}.include?(Facter.value
("operatingsystem"))
+ elsif %w{Fedora RedHat CentOS}.include?(Facter.value
("operatingsystem"))
cmd << "-M"
end
cmd
These are source files from the EPEL 0.24.7 package. I cannot report
this (minor) bug through Redmine as the system just won't let me
register... Hope it helps.
Bye,
Calimero
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---