assign existing group as primary to pe_accounts::user type
Hi, wondering how to do this. According to the documentation, the 'gid' parameter will assign the primary group using the same name as the user. The 'groups' parameter is an array of supplemental groups and should not include the primary group. I have a scenario where I have a group called 'users', gid=100 already existing. I'd like to create users using the pe_accounts::user type and have 'users' be the primary group for all of them.
Update - I found a solution to a similar problem, but not this one exactly. In the case where I am adding a group that I want multiple users to be a member of, instead of adding the group first then the user, I add the user of the same name first in the users class. The creation of the user will also create the group, then subsequent definitions of the user type can be given my new group as a supplemental group. However this doesn't fix the problem with the 'users' group which is part of the default OS install (working with RHEL 6). I tried creating a class to specifically remove the users group first, but that failed because a default user has 'users' as its primary group. Thanks