diff options
author | mh <mh@immerda.ch> | 2010-10-16 18:05:54 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-10-16 18:05:54 +0200 |
commit | 2408b555be4021b02a7a853347a3224db8b09ac0 (patch) | |
tree | 0caede481eb23d3fc0f3e81008acb1a99b37a0ad /manifests | |
parent | 0f570f4d2185ccadf4fbc6839c6423bd75ed7476 (diff) | |
download | puppet-lighttpd-2408b555be4021b02a7a853347a3224db8b09ac0.tar.gz puppet-lighttpd-2408b555be4021b02a7a853347a3224db8b09ac0.tar.bz2 |
use abstract define to deploy config
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/munin.pp | 7 |
1 files changed, 2 insertions, 5 deletions
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_'], |