diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-09-10 17:05:30 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-09-10 17:05:30 -0300 |
commit | 5c5aeab83e010f77e64afe2883d136b82befbb07 (patch) | |
tree | a0654167d69737b14daeb0ef0038180ee9a93ff9 | |
parent | c81caaf2ef7bddb6d978b166623052cd07631d80 (diff) | |
download | puppet-virtual-5c5aeab83e010f77e64afe2883d136b82befbb07.tar.gz puppet-virtual-5c5aeab83e010f77e64afe2883d136b82befbb07.tar.bz2 |
Fix: check for duplicate 'xorriso' package definition
-rw-r--r-- | manifests/kvm/packages.pp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/kvm/packages.pp b/manifests/kvm/packages.pp index 688e5fa..2470d59 100644 --- a/manifests/kvm/packages.pp +++ b/manifests/kvm/packages.pp @@ -3,13 +3,20 @@ class virtual::kvm::packages { 'qemu-kvm', 'socat', 'fakeroot', - 'xorriso', 'debirf', 'simple-cdd', ]: ensure => present, } + if !defined(Package['xorriso']) { + package { [ + 'xorriso', + ]: + ensure => present, + } + } + # Provide a netboot image for VM installs package { "debian-installer-9-netboot-${::architecture}": ensure => present, |