From 2408b555be4021b02a7a853347a3224db8b09ac0 Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 16 Oct 2010 18:05:54 +0200 Subject: use abstract define to deploy config --- manifests/munin.pp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'manifests') diff --git a/manifests/munin.pp b/manifests/munin.pp index b2e24a8..65f1e20 100644 --- a/manifests/munin.pp +++ b/manifests/munin.pp @@ -1,19 +1,16 @@ class lighttpd::munin { - file{'/etc/lighttpd/conf.d/status.conf': + lighttpd::config::file{'status': content => 'server.modules += ( "mod_status" ) $HTTP["remoteip"] == "127.0.0.1" { status.status-url = "/server-status" status.config-url = "/server-config" } ', - require => Package['lighttpd'], - notify => Service['lighttpd'], - owner => root, group => 0, mode => 0644; } munin::plugin::deploy{'lighttpd_': source => "lighttpd/munin/lighttpd_", ensure => absent, - require => File['/etc/lighttpd/conf.d/status.conf'], + require => Lighttpd::Config::File['status'], } munin::plugin{'lighttpd_total_accesses': require => Munin::Plugin::Deploy['lighttpd_'], -- cgit v1.2.3