diff options
Diffstat (limited to 'manifests/host.pp')
-rw-r--r-- | manifests/host.pp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/host.pp b/manifests/host.pp new file mode 100644 index 00000000..49f038b5 --- /dev/null +++ b/manifests/host.pp @@ -0,0 +1,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, + } +} |