24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# File 'manifests/node.pp', line 24
define genders::node (
Variant[Array[String], String] $node = $name,
Variant[Array[String],Hash[String,String]] $attrs = [],
Optional[String] $content = undef,
Optional[String] $source = undef,
String $order = '50',
) {
include genders
if ! $source and ! $content {
$_content = template('genders/node.erb')
} else {
$_content = $content
}
concat::fragment { "/etc/genders.${name}":
target => '/etc/genders',
content => $_content,
source => $source,
order => $order,
}
}
|