ganeti2: add wrapper for qemu-system-ppc64
authorJulien Cristau <jcristau@debian.org>
Sun, 27 Jan 2019 15:00:27 +0000 (16:00 +0100)
committerJulien Cristau <jcristau@debian.org>
Sun, 27 Jan 2019 15:01:47 +0000 (16:01 +0100)
modules/ganeti2/files/qemu-system-ppc64-wrapper [new file with mode: 0755]
modules/ganeti2/manifests/init.pp

diff --git a/modules/ganeti2/files/qemu-system-ppc64-wrapper b/modules/ganeti2/files/qemu-system-ppc64-wrapper
new file mode 100755 (executable)
index 0000000..415eeb9
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
+# We want to always enable KVM. Contrary to what the Ganeti's documentation
+# says, enabling kvm_flag is not enough.
+
+exec /usr/bin/qemu-system-ppc64 -enable-kvm "$@"
index 1708ba8..3fb944c 100644 (file)
@@ -30,6 +30,13 @@ class ganeti2 {
                        mode   => '0555',
                }
        }
+       if $::debarchitecture == 'ppc64el' {
+               file { '/usr/local/bin/qemu-system-ppc64-wrapper':
+                       source => 'puppet:///modules/ganeti2/qemu-system-ppc64-wrapper',
+                       mode   => '0555',
+               }
+       }
+
        if $::cluster == 'ganeti.bm.debian.org' {
                file { '/usr/local/sbin/crazy-multipath-restart':
                        source => 'puppet:///modules/ganeti2/crazy-multipath-restart',