restart multipath on bytemark blades
[mirror/dsa-puppet.git] / modules / ganeti2 / manifests / init.pp
index 431cc17..5619d52 100644 (file)
@@ -30,4 +30,15 @@ class ganeti2 {
                        mode   => '0555',
                }
        }
+       if $::cluster == 'ganeti.bm.debian.org' {
+               file { '/usr/local/sbin/crazy-multipath-restart':
+                       source => 'puppet:///modules/ganeti2/crazy-multipath-restart',
+                       mode   => '0555',
+               }
+               file { '/etc/cron.d/puppet-crazy-multipath-restart':
+                       content  => @("EOF"),
+                                       */15 * * * * root /usr/local/sbin/crazy-multipath-restart
+                                       | EOF
+               }
+       }
 }