+ 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 {
+ "/etc/ferm/conf.d/load_ftp_conntrack.conf":
+ source => "puppet:///modules/ferm/conntrack_ftp.conf",
+ require => Package["ferm"],
+ notify => Exec["ferm restart"];
+ }
+ }
+ }
+