summaryrefslogtreecommitdiff
path: root/manifests/agent.pp
diff options
context:
space:
mode:
authorKeith Burdis <keith@burdis.org>2013-02-09 08:51:44 +0000
committerKeith Burdis <keith@burdis.org>2013-02-09 08:51:44 +0000
commit0769984c3e3fbac826332420c044b691b5d11f8b (patch)
treee3153d18e9153c2125634902da14eb10c3499673 /manifests/agent.pp
parent07b0b601cfb9ad4224e3b65fccb736bc5c93f41d (diff)
* Added host tags to agent config so that host groups can be auto-populated
* Fixed incorrect package name when using a file store that was causing the package existence check to fail always causing an often failing reinstall * Enable a static list of hosts to be specified for those without the Puppet check_mk module installed
Diffstat (limited to 'manifests/agent.pp')
-rw-r--r--manifests/agent.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/agent.pp b/manifests/agent.pp
index dc13388..b53882a 100644
--- a/manifests/agent.pp
+++ b/manifests/agent.pp
@@ -1,5 +1,6 @@
class check_mk::agent (
$filestore = undef,
+ $host_tags = undef,
$ip_whitelist = undef,
$port = '6556',
$server_dir = '/usr/bin',
@@ -22,5 +23,7 @@ class check_mk::agent (
require => Class['check_mk::agent::install'],
}
include check_mk::agent::service
- @@check_mk::host { $::fqdn: }
+ @@check_mk::host { $::fqdn:
+ host_tags => $host_tags,
+ }
}