CentOS 7
Sponsored Link

Puppet : How to use [group Resource]2015/07/22

 
This is the examples for group resource.
[1] It manages the configuration to keep "centos" group exists.
[root@dlp ~]#
vi /etc/puppet/manifests/site.pp
group { 'centos': ensure => present }
[2] It specify GID explicitly.
[root@dlp ~]#
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.)
[root@dlp ~]#
vi /etc/puppet/manifests/site.pp
group { 'centos': ensure => absent }
Matched Content