You want to change a Unix groups group ID
class explicit_group_gid {
# create a group with a specific GID.
group { 'apacheadmins':
gid => 2002,
}
}
# find files owned by group for permission cleanup
$ find -group apacheadmins
Changing the group id (GID) of an existing group is very easy to do, but it's often only part of the actual goal. While Puppet makes the change it doesn't alter the GID of any of the groups existing files. You'll need to do those separately. Either in puppet or with a handful of shell commands.