summaryrefslogtreecommitdiff
path: root/manifests/host.pp
blob: 4e8d14647fb5b71b745a5950ba7c052a306a72fe (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($host_tags,'|')
    $entry = "${host}|${taglist}"
  }
  else {
    $entry = $host
  }
  concat::fragment { "check_mk-${host}":
    target  => $target,
    content => "  '${entry}',\n",
    order   => 11,
  }
}