-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Calimero wrote:
> 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.
>
Thanks for reporting this.
I've pushed a commit fixing this issue. It'll be in the forthcoming
0.24.8 release.
Regards
James Turnbull
- --
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
iD8DBQFJpBHE9hTGvAxC30ARAgZ3AJ9V2X6bDNL0DFUW6qB8+MkIF4RfNACfQD1l
osORC6Q7r22k7XX6Oj/FQDA=
=UuGK
-----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 [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
-~----------~----~----~----~------~----~------~--~---