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/network/analyzer.pp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'manifests/utils/network/analyzer.pp') diff --git a/manifests/utils/network/analyzer.pp b/manifests/utils/network/analyzer.pp index c3f4f41..7a30892 100644 --- a/manifests/utils/network/analyzer.pp +++ b/manifests/utils/network/analyzer.pp @@ -1,4 +1,6 @@ -class nodo::utils::network::analyzer { +class nodo::utils::network::analyzer ( + $ensure = 'installed', +) { package { [ 'tshark', 'arping', @@ -9,14 +11,14 @@ class nodo::utils::network::analyzer { 'iperf', 'zmap', ]: - ensure => installed, + ensure => $ensure, } # https://www.linode.com/docs/networking/diagnosing-network-issues-with-mtr package { [ 'mtr', ]: - ensure => present, + ensure => $ensure, } # Not in use -- cgit v1.2.3