From 23dc1202b2e30355e1f45f7be882f65db8477053 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Wed, 3 Jun 2009 11:38:08 +0200 Subject: Add initialisation for munin.conf.header --- README | 3 +++ manifests/host.pp | 12 ++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README b/README index 8352db0..80d0408 100644 --- a/README +++ b/README @@ -87,3 +87,6 @@ To use this module, follow these directions: $munin_port = 4948 +4. Cleanup: If you need any manual configuration or had already nodes defined + in your munin.conf, you can add/remove them from + /etc/munin/munin.conf.header on the munin::host. diff --git a/manifests/host.pp b/manifests/host.pp index f89cbb8..1d17518 100644 --- a/manifests/host.pp +++ b/manifests/host.pp @@ -12,11 +12,19 @@ class munin::host dir => $NODESDIR, header => "/etc/munin/munin.conf.header", } + + file { + "/etc/munin/munin.conf.header": + source => "/etc/munin/munin.conf", + replace => no, # only initialise + mode => 0644, owner => root, group => 0, + before => File["/etc/munin/munin.conf"]; + } file { ["/var/log/munin-update.log", "/var/log/munin-limits.log", "/var/log/munin-graph.log", "/var/log/munin-html.log"]: - ensure => present, - mode => 640, owner => munin, group => root; + ensure => present, + mode => 640, owner => munin, group => root; } } -- cgit v1.2.3