diff options
author | Micah <micah@leap.se> | 2016-05-24 10:19:41 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-05-24 10:19:41 -0400 |
commit | c9d50f333a81c716f3e227e9eb449dc76b6eb6e3 (patch) | |
tree | 1a09a2775045f854000f6cba5ee4efb2c3a802b2 /manifests/host.pp |
Squashed 'puppet/modules/check_mk/' content from commit aa02571
git-subtree-dir: puppet/modules/check_mk
git-subtree-split: aa02571537af90ac73309e6e216c9417802548c3
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, + } +} |