Issue #12716 has been reported by Hendy Irawan.
----------------------------------------
Bug #12716: user resource does not assign proper group/gid
https://projects.puppetlabs.com/issues/12716
Author: Hendy Irawan
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
The following does not work as expected:
# Create group, user, and home folder
group { jbossas:
ensure => present
}
user { jbossas:
ensure => present,
managehome => true,
gid => 'jbossas',
require => Group['jbossas'],
comment => 'JBoss Application Server'
}
When applied, the above only creates the jbossas group and jbossas user, but
the jbossas group's members is empty.
I have to add additional workaround for this:
# workaround for Puppet bug about user not added to group
exec { '/usr/sbin/adduser jbossas jbossas':
unless => "/bin/grep 'jbossas.*jbossas' /etc/group",
require => [ Group['jbossas'], User['jbossas'] ]
}
--
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 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-bugs?hl=en.