1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'manifests/groups.pp', line 1
class system::groups (
$config = undef,
$schedule = $::system::schedule,
$real = false,
) {
$defaults = {
ensure => 'present',
schedule => $schedule,
}
if $real {
$type = 'group'
}
else {
$type = '@group'
}
if $config {
system_create_resources($type, $config, $defaults)
}
else {
$hiera_config = hiera_hash('system::groups', undef)
if $hiera_config {
system_create_resources($type, $hiera_config, $defaults)
}
}
}
|