From 5a55d6224007f7ac0d0e6bd5f649e50b7d60ae3d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 3 Feb 2017 08:44:59 -0200 Subject: Adds ensure param to utils classes --- manifests/utils/development/system.pp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'manifests/utils/development/system.pp') diff --git a/manifests/utils/development/system.pp b/manifests/utils/development/system.pp index 9e48a31..e5066fc 100644 --- a/manifests/utils/development/system.pp +++ b/manifests/utils/development/system.pp @@ -1,4 +1,6 @@ -class nodo::utils::development::system { +class nodo::utils::development::system ( + $ensure = 'installed', +) { package { [ 'debirf', 'xorriso', @@ -6,14 +8,14 @@ class nodo::utils::development::system { 'openocd', 'live-build', ]: - ensure => installed, + ensure => $ensure, } package { [ 'unetbootin', ]: ensure => $::lsbdistcodename ? { - 'wheezy' => present, + 'wheezy' => $ensure, default => absent, }, } -- cgit v1.2.3