summaryrefslogtreecommitdiff
path: root/manifests/config.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/config.pp')
-rw-r--r--manifests/config.pp15
1 files changed, 8 insertions, 7 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
index fdc3f1b..f764397 100644
--- a/manifests/config.pp
+++ b/manifests/config.pp
@@ -1,17 +1,18 @@
class check_mk::config (
$site,
- $host_groups = undef,
- $etc_dir = "/omd/sites/${site}/etc",
- $bin_dir = "/omd/sites/${site}/bin"
+ $host_groups = undef,
+ $etc_dir = "/omd/sites/${site}/etc",
+ $nagios_subdir = 'nagios',
+ $bin_dir = "/omd/sites/${site}/bin"
) {
- file { "${etc_dir}/nagios/local":
+ file { "${etc_dir}/${nagios_subdir}/local":
ensure => directory,
}
file_line { 'nagios-add-check_mk-cfg_dir':
ensure => present,
- line => "cfg_dir=${etc_dir}/nagios/local",
- path => "${etc_dir}/nagios/nagios.cfg",
- require => File["${etc_dir}/nagios/local"],
+ line => "cfg_dir=${etc_dir}/${nagios_subdir}/local",
+ path => "${etc_dir}/${nagios_subdir}/nagios.cfg",
+ require => File["${etc_dir}/${nagios_subdir}/local"],
#notify => Class['check_mk::service'],
}
file_line { 'add-guest-users':