notify => Exec["ferm restart"];
"/etc/logrotate.d/ulogd":
source => "puppet:///modules/ferm/logrotate-ulogd",
- require => Package["logrotate"],
+ require => Package["debian.org"],
;
}
$munin_ips: script => "ip_";
}
- case extractnodeinfo($nodeinfo, 'buildd') {
+ 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, '([^,]+)', 'ip_\1', 'G'), ',')
+ activate_munin_check {
+ $munin6_ips: ensure => absent;
+ }
+ }
+ }
+
+
+ case getfromhash($nodeinfo, 'buildd') {
true: {
file {
"/etc/ferm/conf.d/load_ftp_conntrack.conf":
}
}
- 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",