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
26
27
28
29
|
# File 'manifests/properties.pp', line 1
define confluent::properties (
Enum['present', 'absent'] $ensure,
Hash[String, Variant[String, Integer, Boolean]] $config,
Stdlib::Unixpath $path,
$mode = '0644',
String $owner = 'root',
String $group = 'root',
) {
case $ensure {
'present': {
file { $path:
ensure => $ensure,
mode => $mode,
owner => $owner,
group => $group,
tag => "confluent-${title}",
content => template('confluent/properties.erb')
}
}
'absent': {
file { $path:
ensure => $ensure
}
}
default: {
fail("''${ensure}' is not a valid value for ensure. Valid values are present or absent.")
}
}
}
|