Issue #12716 has been updated by Hendy Irawan.
Info about the system: Ubuntu 11.10 Oneiric, both i686 and amd64 are affected
Linux satukancinta.vm 3.0.0-14-virtual #23-Ubuntu SMP Mon Nov 21 23:40:55
UTC 2011 i686 i686 i386 GNU/Linux
----------------------------------------
Bug #12716: user resource does not assign proper group/gid
https://projects.puppetlabs.com/issues/12716#change-55223
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.