CentOS 6
Sponsored Link

Puppet - How to Use [group resource]
2014/01/26
 
This is the exmaples 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
 
Tweet