Issue #22070 has been updated by Stefan Schulte.
Status changed from Unreviewed to Needs More Information
Assignee set to Justin Honold
Hi Justin, what version of puppet are you using and what does
facter osfamily
return? The `useradd` provider adds `-M` to the comandline if you don't want to
manage the homedirectory on RedHat so I'll have to find out why it is not
triggered.
Running `puppet agent -t --debug ...` also helps because you will see the
actual command puppet uses to create your user.
----------------------------------------
Bug #22070: Puppet managing home directories on Amazon Linux (RHEL-derived)
whether I want it or not
https://projects.puppetlabs.com/issues/22070#change-97160
* Author: Justin Honold
* Status: Needs More Information
* Priority: Normal
* Assignee: Justin Honold
* Category:
* Target version:
* Affected Puppet version:
* Keywords:
* Branch:
----------------------------------------
First, I set up a user account along these lines:
user { 'myuser':
ensure => 'present',
comment => 'My User',
password => '!!',
shell => '/usr/sbin/nologin',
home => '/home/myuser',
}
except I had a typo and used '/hoome/myuser'. It failed because it said it
couldn't create the dir, which I thought was odd, because Puppet didn't manage
dirs by default as per
http://docs.puppetlabs.com/references/stable/type.html#user . I corrected the
typo, explicitly set managehome to false (the claimed default), and it still
created the dir. Then I tried removing the home entry entirely, and it still
defaulted to /home/myuser and created it. It also copied skelfiles each time,
and there isn't an apparent option to include or exclude that behavior.
What is happening here? Is managehome mandatory with useradd-based systems on
newer versions of Puppet?
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.