fuel-library: Fix virtlogd not started
[armband.git] / patches / fuel-library / 0003-Make-qemu-kvm-architecture-aware.patch
1 From: Stanislaw Kardach <stanislaw.kardach@caviumnetworks.com>
2 Date: Wed, 24 Feb 2016 20:07:06 +0100
3 Subject: [PATCH] Make qemu-kvm architecture aware
4
5 ---
6  deployment/puppet/openstack_tasks/manifests/roles/compute.pp | 9 +++++++--
7  1 file changed, 7 insertions(+), 2 deletions(-)
8
9 diff --git a/deployment/puppet/openstack_tasks/manifests/roles/compute.pp b/deployment/puppet/openstack_tasks/manifests/roles/compute.pp
10 index b2339bc..ca1b2c4 100644
11 --- a/deployment/puppet/openstack_tasks/manifests/roles/compute.pp
12 +++ b/deployment/puppet/openstack_tasks/manifests/roles/compute.pp
13 @@ -169,7 +169,12 @@ class openstack_tasks::compute (
14        # From legacy libvirt.pp
15 +      # Guard against some exotic distros with their `uname -m`
16 +      $arch = $::architecture ? {
17 +        /(arm64|aarch64)/ => 'aarch64',
18 +        default           => 'x86_64',
19 +      }
20        exec { 'symlink-qemu-kvm':
21 -        command => '/bin/ln -sf /usr/libexec/qemu-kvm /usr/bin/qemu-system-x86_64',
22 -        creates => '/usr/bin/qemu-system-x86_64',
23 +        command => "/bin/ln -sf /usr/libexec/qemu-kvm /usr/bin/qemu-system-${arch}",
24 +        creates => "/usr/bin/qemu-system-${arch}",
25        }
26  
27        package { 'avahi':