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/office | |
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/office')
-rw-r--r-- | manifests/utils/office/console.pp | 6 | ||||
-rw-r--r-- | manifests/utils/office/gui.pp | 6 | ||||
-rw-r--r-- | manifests/utils/office/hp.pp | 6 |
3 files changed, 12 insertions, 6 deletions
diff --git a/manifests/utils/office/console.pp b/manifests/utils/office/console.pp index a30aaeb..7233d0d 100644 --- a/manifests/utils/office/console.pp +++ b/manifests/utils/office/console.pp @@ -1,4 +1,6 @@ -class nodo::utils::office::console { +class nodo::utils::office::console ( + $ensure = 'installed', +) { package { [ 'vim-gtk', 'wyrd', @@ -10,6 +12,6 @@ class nodo::utils::office::console { 'mat', #'worklog', ]: - ensure => installed, + ensure => $ensure, } } diff --git a/manifests/utils/office/gui.pp b/manifests/utils/office/gui.pp index 434dede..3bb43fe 100644 --- a/manifests/utils/office/gui.pp +++ b/manifests/utils/office/gui.pp @@ -1,4 +1,6 @@ -class nodo::utils::office::gui { +class nodo::utils::office::gui ( + $ensure = 'installed', +) { package { [ 'gobby', 'libreoffice', @@ -8,6 +10,6 @@ class nodo::utils::office::gui { #'evince', #'aewan', ]: - ensure => installed, + ensure => $ensure, } } diff --git a/manifests/utils/office/hp.pp b/manifests/utils/office/hp.pp index 193eb46..17767c7 100644 --- a/manifests/utils/office/hp.pp +++ b/manifests/utils/office/hp.pp @@ -1,7 +1,9 @@ -class nodo::utils::office::hp { +class nodo::utils::office::hp ( + $ensure = 'installed', +) { package { [ 'hplip-gui', ]: - ensure => present, + ensure => $ensure, } } |