X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fferm%2Fmanifests%2Finit.pp;h=2850c4a96d0d72e09fef08751b4b6400f901efb4;hb=6047b4170980bbcad7f4015c954a9d061b5c4324;hp=71964c4295a5cff1c0591ecea51f0233443e6801;hpb=06944747f9c1a5b6abb35cf7f5e82207ad3b0023;p=mirror%2Fdsa-puppet.git diff --git a/modules/ferm/manifests/init.pp b/modules/ferm/manifests/init.pp index 71964c429..2850c4a96 100644 --- a/modules/ferm/manifests/init.pp +++ b/modules/ferm/manifests/init.pp @@ -60,7 +60,7 @@ class ferm { notify => Exec["ferm restart"]; "/etc/logrotate.d/ulogd": source => "puppet:///modules/ferm/logrotate-ulogd", - require => Package["logrotate"], + require => Package["debian.org"], ; } @@ -70,6 +70,31 @@ class ferm { $munin_ips: script => "ip_"; } + define munin_ipv6_plugin() { + file { + "/etc/munin/plugins/$name": + content => "#!/bin/bash\n# This file is under puppet control\n. /usr/share/munin/plugins/ip_\n", + mode => 555, + notify => Exec["munin-node restart"], + ; + } + } + case $v6ips { + 'no': {} + default: { + $munin6_ips = split(regsubst($v6ips, '([^,]+)', 'ip_\1', 'G'), ',') + munin_ipv6_plugin { + $munin6_ips: ; + } + # get rid of old stuff + $munin6_ip6s = split(regsubst($v6ips, '([^,]+)', 'ip6_\1', 'G'), ',') + activate_munin_check { + $munin6_ip6s: ensure => absent; + } + } + } + + case getfromhash($nodeinfo, 'buildd') { true: { file { @@ -81,16 +106,6 @@ class ferm { } } - case $v6ips { - 'no': {} - default: { - $munin6_ips = split(regsubst($v6ips, '([^,]+)', 'ip6_\1', 'G'), ',') - activate_munin_check { - $munin6_ips: script => "ip6_"; - } - } - } - exec { "ferm restart": command => "/etc/init.d/ferm restart",