blob: 49f038b52c4d7ff7e785cd7eb95b07105e82c73d (
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 {
$taglist = join(any2array($host_tags),'|')
$entry = "${host}|${taglist}"
}
else {
$entry = $host
}
concat::fragment { "check_mk-${host}":
target => $target,
content => " '${entry}',\n",
order => 11,
}
}
|