21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# File 'manifests/group_yaml.pp', line 21
define clustershell::group_yaml (
Enum['present','absent','file'] $ensure = 'present',
Hash $data = {},
Optional[String] $source = undef,
Optional[String] $content = undef,
) {
include clustershell
$path = "${clustershell::groups_auto_dir}/${name}.yaml"
if ! $source and ! $content {
$_content = template('clustershell/group_yaml.erb')
} else {
$_content = $content
}
file { "clustershell::group_yaml ${name}":
ensure => $ensure,
path => $path,
owner => 'root',
group => 'root',
mode => '0644',
content => $_content,
source => $source,
}
}
|