blob: 87687a4fde73f25ab09bf1061c9cec8accdfdc5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
define check_mk::host (
$target,
$host_tags = [],
) {
$host = $title
if size($host_tags) > 0
$_tags = join($host_tags,'|')
$entry = "${host}|${_tags}"
}
else {
$entry = $host
}
concat::fragment { "check_mk-${host}":
target => $target,
content => " '${entry}',\n",
order => 11,
}
}
|