From 4a880ad141c8deefb41549e5e79c868303e1c296 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 23 Sep 2016 16:29:26 -0300 Subject: Coding style for utilities --- manifests/utils/storage/archive.pp | 14 +++++++++++--- manifests/utils/storage/crypto.pp | 5 ++++- manifests/utils/storage/iso.pp | 4 +++- manifests/utils/storage/layer.pp | 5 ++++- 4 files changed, 22 insertions(+), 6 deletions(-) (limited to 'manifests/utils/storage') diff --git a/manifests/utils/storage/archive.pp b/manifests/utils/storage/archive.pp index e7af761..cd670dc 100644 --- a/manifests/utils/storage/archive.pp +++ b/manifests/utils/storage/archive.pp @@ -1,13 +1,21 @@ class nodo::utils::storage::archive { - package { 'git-annex': + package { [ + 'git-annex', + ]: ensure => latest, } - package { [ 'jigdo-file', 'fdupes', 'gddrescue' ]: + package { [ + 'jigdo-file', + 'fdupes', + 'gddrescue', + ]: ensure => installed, } - package { 'syslinux-utils': + package { [ + 'syslinux-utils', + ]: ensure => $::architecture ? { 'amd64' => present, 'i386' => present, diff --git a/manifests/utils/storage/crypto.pp b/manifests/utils/storage/crypto.pp index a683ff7..0a0d520 100644 --- a/manifests/utils/storage/crypto.pp +++ b/manifests/utils/storage/crypto.pp @@ -1,5 +1,8 @@ class nodo::utils::storage::crypto { - package { [ 'cryptsetup', 'ecryptfs-utils' ]: + package { [ + 'cryptsetup', + 'ecryptfs-utils', + ]: ensure => installed, } } diff --git a/manifests/utils/storage/iso.pp b/manifests/utils/storage/iso.pp index 0492a1d..f271dcd 100644 --- a/manifests/utils/storage/iso.pp +++ b/manifests/utils/storage/iso.pp @@ -1,5 +1,7 @@ class nodo::utils::storage::iso { - package { 'syslinux': + package { [ + 'syslinux', + ]: ensure => $::architecture ? { 'amd64' => present, 'i386' => present, diff --git a/manifests/utils/storage/layer.pp b/manifests/utils/storage/layer.pp index a12b2d2..7951573 100644 --- a/manifests/utils/storage/layer.pp +++ b/manifests/utils/storage/layer.pp @@ -1,7 +1,10 @@ class nodo::utils::storage::layer { include nodo::utils::storage::crypto - package { [ 'mdadm', 'lvm2' ]: + package { [ + 'mdadm', + 'lvm2', + ]: ensure => installed, } } -- cgit v1.2.3