diff options
author | Keith Burdis <keith@burdis.org> | 2013-02-09 08:51:44 +0000 |
---|---|---|
committer | Keith Burdis <keith@burdis.org> | 2013-02-09 08:51:44 +0000 |
commit | 0769984c3e3fbac826332420c044b691b5d11f8b (patch) | |
tree | e3153d18e9153c2125634902da14eb10c3499673 /manifests/config.pp | |
parent | 07b0b601cfb9ad4224e3b65fccb736bc5c93f41d (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/config.pp')
-rw-r--r-- | manifests/config.pp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/config.pp b/manifests/config.pp index edd14d9..73e4882 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -41,6 +41,12 @@ class check_mk::config ( target => "${etc_dir}/check_mk/main.mk", notify => Exec['check_mk-refresh'] } + # local list of hosts is in /omd/sites/${site}/etc/check_mk/all_hosts_static and is appended + concat::fragment { 'all-hosts-static': + ensure => "${etc_dir}/check_mk/all_hosts_static", + target => "${etc_dir}/check_mk/main.mk", + order => 18, + } # host_groups if $host_groups { file { "${etc_dir}/nagios/local/hostgroups": @@ -59,7 +65,7 @@ class check_mk::config ( $groups = keys($host_groups) check_mk::hostgroup { $groups: dir => "${etc_dir}/nagios/local/hostgroups", - host_groups => $host_groups, + hostgroups => $host_groups, target => "${etc_dir}/check_mk/main.mk", notify => Exec['check_mk-refresh'] } |