FreeBSD 14
Sponsored Link

Puppet : How to use [group Resource]2024/09/12

 

This is the examples for [group] resource.

[1] It manages the configuration to keep [testgroup] group exists.
root@dlp:~ #
vi /usr/local/etc/puppet/code/environments/production/manifests/group01.pp
group { 'testgroup': ensure => present }
[2] It specifies GID explicitly.
root@dlp:~ #
vi /usr/local/etc/puppet/code/environments/production/manifests/group01.pp
group { 'testgroup':
  ensure => present,
  gid    => 2000,
}
[3] It manages the configuration to keep [testgroup] group does not exist. (If exists, it is deleted.)
root@dlp:~ #
vi /usr/local/etc/puppet/code/environments/production/manifests/group01.pp
group { 'testgroup': ensure => absent }
Matched Content