diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-09-10 17:05:20 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-09-10 17:05:20 -0300 |
commit | ca31c8c421c5193cb8384327295b3b71c34863ad (patch) | |
tree | 7cba9dd53e4f4c5f3b9f799085d3d8f2fcb45f30 | |
parent | 2316a33e11838166f344951fe663c4a050af4cb0 (diff) | |
download | puppet-nodo-ca31c8c421c5193cb8384327295b3b71c34863ad.tar.gz puppet-nodo-ca31c8c421c5193cb8384327295b3b71c34863ad.tar.bz2 |
Fix: check for duplicate 'xorriso' package definition
-rw-r--r-- | manifests/utils/storage/iso.pp | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/manifests/utils/storage/iso.pp b/manifests/utils/storage/iso.pp index 2684f33..1b6685a 100644 --- a/manifests/utils/storage/iso.pp +++ b/manifests/utils/storage/iso.pp @@ -1,14 +1,25 @@ class nodo::utils::storage::iso ( $ensure = 'installed', ) { - package { [ - #'syslinux', - 'xorriso', - ]: - ensure => $::architecture ? { - 'amd64' => $ensure, - 'i386' => $ensure, - default => absent, - }, + if !defined(Package['xorriso']) { + package { [ + 'xorriso', + ]: + ensure => $::architecture ? { + 'amd64' => $ensure, + 'i386' => $ensure, + default => absent, + }, + } } + + #package { [ + # 'syslinux', + #]: + # ensure => $::architecture ? { + # 'amd64' => $ensure, + # 'i386' => $ensure, + # default => absent, + # }, + #} } |