Move crontab crazy multipath into dsa-puppet-stuff
[mirror/dsa-puppet.git] / modules / ganeti2 / manifests / init.pp
index 2d80c9d..5e03c24 100644 (file)
@@ -27,7 +27,22 @@ class ganeti2 {
        if $::debarchitecture == 'arm64' {
                file { '/usr/local/bin/qemu-system-aarch64-wrapper':
                        source => 'puppet:///modules/ganeti2/qemu-system-aarch64-wrapper',
-                       mode   => '0755',
+                       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':
+                       ensure => absent,
+               }
+               concat::fragment { 'dsa-puppet-stuff--multipath-restart':
+                       target => '/etc/cron.d/dsa-puppet-stuff',
+                       content  => @("EOF"),
+                                       */15 * * * * root /usr/local/sbin/crazy-multipath-restart
+                                       | EOF
                }
        }
 }