From 95009f193bb4c711cac67023c182cbe200d00c46 Mon Sep 17 00:00:00 2001 From: Robert Frank Date: Thu, 3 Nov 2016 11:22:46 +0000 Subject: [PATCH] added option to change qemu-kvm package --- manifests/init.pp | 6 +++++- manifests/params.pp | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 14be7a5..e59a7b5 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -29,6 +29,7 @@ $libvirt_package = $::libvirt::params::libvirt_package, $libvirt_service = $::libvirt::params::libvirt_service, $virtinst_package = $::libvirt::params::virtinst_package, + $qemu_package = $::libvirt::params::qemu_package, $radvd_package = $::libvirt::params::radvd_package, $sysconfig = $::libvirt::params::sysconfig, $deb_default = $::libvirt::params::deb_default, @@ -120,7 +121,10 @@ package { $virtinst_package: ensure => installed } } if $qemu { - package { 'qemu-kvm': ensure => installed } + package { 'qemu-kvm': + ensure => installed, + name => $qemu_package, + } file { '/etc/sasl2/qemu-kvm.conf': owner => 'root', group => 'root', diff --git a/manifests/params.pp b/manifests/params.pp index 9d98aa9..9fbfe61 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -13,6 +13,7 @@ } else { $virtinst_package = 'python-virtinst' } + $qemu_package = 'qemu-kvm' $radvd_package = 'radvd' $sysconfig = {} $deb_default = false @@ -20,6 +21,7 @@ 'Debian': { $libvirt_package = 'libvirt-bin' $virtinst_package = 'virtinst' + $qemu_package = 'qemu-kvm' $radvd_package = 'radvd' $sysconfig = false $deb_default = {} @@ -42,6 +44,7 @@ $libvirt_package = 'libvirt' $libvirt_service = 'libvirtd' $virtinst_package = 'python-virtinst' + $qemu_package = 'qemu-kvm' $radvd_package = 'radvd' $sysconfig = false $deb_default = false