CentOS 7
Sponsored Link

Puppet : How to use [group Resource]
2015/07/22
 
This is the exmaples for group resource.
[1] It manages the configuration to keep "centos" group exists.
[[email protected] ~]#
vi /etc/puppet/manifests/site.pp
group { 'centos': ensure => present }
[2] It specify GID explicitly.
[[email protected] ~]#
vi /etc/puppet/manifests/site.pp
group { 'centos':
    ensure => present,
    gid    => 1000,
}
[3] It manages the configuration to keep "centos" group does not exist. (If exists, it is deleted.)
[[email protected] ~]#
vi /etc/puppet/manifests/site.pp
group { 'centos': ensure => absent }