Issue #22070 has been updated by Justin Honold.
Puppet: 3.1.1 osfamily: Linux I just tested on pure CentOS 6.x (osfamily: RedHat) and it passed '-M' to useradd. I retested on Amazon Linux, and confirmed that it didn't. What I'd note is that Facter yields 'operatingsystem => Amazon' as well as a ton of 'ec2_' prefix facts. Where you're traditionally checking for RHEL-derived hosts, maybe you want to add an additional check for Amazon Linux? ---------------------------------------- Bug #22070: Puppet managing home directories on Amazon Linux (RHEL-derived) whether I want it or not https://projects.puppetlabs.com/issues/22070#change-97162 * 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.
