aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/storage
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-09-10 17:05:20 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-09-10 17:05:20 -0300
commitca31c8c421c5193cb8384327295b3b71c34863ad (patch)
tree7cba9dd53e4f4c5f3b9f799085d3d8f2fcb45f30 /manifests/utils/storage
parent2316a33e11838166f344951fe663c4a050af4cb0 (diff)
downloadpuppet-nodo-ca31c8c421c5193cb8384327295b3b71c34863ad.tar.gz
puppet-nodo-ca31c8c421c5193cb8384327295b3b71c34863ad.tar.bz2
Fix: check for duplicate 'xorriso' package definition
Diffstat (limited to 'manifests/utils/storage')
-rw-r--r--manifests/utils/storage/iso.pp29
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,
+ # },
+ #}
}