diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-02-03 08:44:59 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-02-03 08:44:59 -0200 |
commit | 5a55d6224007f7ac0d0e6bd5f649e50b7d60ae3d (patch) | |
tree | ee327ce71af274376f664bd061eeef50b136e2f5 /manifests/utils/storage | |
parent | 81316081a32a13a2b948033e78c2987df0bcc014 (diff) | |
download | puppet-nodo-5a55d6224007f7ac0d0e6bd5f649e50b7d60ae3d.tar.gz puppet-nodo-5a55d6224007f7ac0d0e6bd5f649e50b7d60ae3d.tar.bz2 |
Adds ensure param to utils classes
Diffstat (limited to 'manifests/utils/storage')
-rw-r--r-- | manifests/utils/storage/archive.pp | 11 | ||||
-rw-r--r-- | manifests/utils/storage/crypto.pp | 6 | ||||
-rw-r--r-- | manifests/utils/storage/iso.pp | 8 | ||||
-rw-r--r-- | manifests/utils/storage/layer.pp | 6 |
4 files changed, 20 insertions, 11 deletions
diff --git a/manifests/utils/storage/archive.pp b/manifests/utils/storage/archive.pp index 4082fe2..0c3f5cc 100644 --- a/manifests/utils/storage/archive.pp +++ b/manifests/utils/storage/archive.pp @@ -1,8 +1,11 @@ -class nodo::utils::storage::archive { +class nodo::utils::storage::archive ( + $ensure = 'installed', +) { package { [ 'git-annex', ]: - ensure => latest, + #ensure => latest, + ensure => $ensure, } # Not in use @@ -18,8 +21,8 @@ class nodo::utils::storage::archive { 'syslinux-utils', ]: ensure => $::architecture ? { - 'amd64' => present, - 'i386' => present, + 'amd64' => $ensure, + 'i386' => $ensure, default => absent, }, } diff --git a/manifests/utils/storage/crypto.pp b/manifests/utils/storage/crypto.pp index 0a0d520..0de92c0 100644 --- a/manifests/utils/storage/crypto.pp +++ b/manifests/utils/storage/crypto.pp @@ -1,8 +1,10 @@ -class nodo::utils::storage::crypto { +class nodo::utils::storage::crypto ( + $ensure = 'installed', +) { package { [ 'cryptsetup', 'ecryptfs-utils', ]: - ensure => installed, + ensure => $ensure, } } diff --git a/manifests/utils/storage/iso.pp b/manifests/utils/storage/iso.pp index f271dcd..5f841ce 100644 --- a/manifests/utils/storage/iso.pp +++ b/manifests/utils/storage/iso.pp @@ -1,10 +1,12 @@ -class nodo::utils::storage::iso { +class nodo::utils::storage::iso ( + $ensure = 'installed', +) { package { [ 'syslinux', ]: ensure => $::architecture ? { - 'amd64' => present, - 'i386' => present, + 'amd64' => $ensure, + 'i386' => $ensure, default => absent, }, } diff --git a/manifests/utils/storage/layer.pp b/manifests/utils/storage/layer.pp index 7951573..1f55887 100644 --- a/manifests/utils/storage/layer.pp +++ b/manifests/utils/storage/layer.pp @@ -1,10 +1,12 @@ -class nodo::utils::storage::layer { +class nodo::utils::storage::layer ( + $ensure = 'installed', +) { include nodo::utils::storage::crypto package { [ 'mdadm', 'lvm2', ]: - ensure => installed, + ensure => $ensure, } } |