summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMatt Taggart <taggart@riseup.net>2014-05-13 15:38:36 -0700
committerMatt Taggart <taggart@riseup.net>2015-04-16 21:08:54 +0000
commit0c2c95da25687045bd894e0780d0fd843ac235fd (patch)
treef657470d577016a9ad78ae90d2d03d2bf70d9932 /manifests
parentbb832e0f0fa92627412058f690b45eec0b4bbadc (diff)
define some files so that the nagios module doesn't try to recurse+purge them
Diffstat (limited to 'manifests')
-rw-r--r--manifests/config.pp14
1 files changed, 12 insertions, 2 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
index 6a6f375..1d7d6cd 100644
--- a/manifests/config.pp
+++ b/manifests/config.pp
@@ -6,8 +6,18 @@ class check_mk::config (
$bin_dir = "/omd/sites/${site}/bin",
$use_storedconfigs = true
) {
- file { "${etc_dir}/${nagios_subdir}/local":
- ensure => directory,
+ file {
+ # for local check_mk checks
+ "${etc_dir}/${nagios_subdir}/local":
+ ensure => directory;
+
+ # package provided and check_mk generated files, defined so the nagios
+ # module doesn't purge them
+ "${etc_dir}/${nagios_subdir}/conf.d/check_mk":
+ ensure => directory;
+ [ "${etc_dir}/${nagios_subdir}/conf.d/check_mk/check_mk_objects.cfg",
+ "${etc_dir}/${nagios_subdir}/conf.d/check_mk/check_mk_templates.cfg" ]:
+ ensure => present;
}
file_line { 'nagios-add-check_mk-cfg_dir':
ensure => present,