From bff4ad619ffb7aad26bc721b47206eef8927d187 Mon Sep 17 00:00:00 2001 From: Marco Wessel Date: Tue, 4 Mar 2014 16:11:09 +0100 Subject: [PATCH] fix $ensure to actually do what I expect. --- manifests/client/install.pp | 4 +--- manifests/server/install.pp | 8 ++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/manifests/client/install.pp b/manifests/client/install.pp index 6429f1563..7c21342a1 100644 --- a/manifests/client/install.pp +++ b/manifests/client/install.pp @@ -1,6 +1,4 @@ -class ssh::client::install ( - $ensure = present -) { +class ssh::client::install if !defined(Package[$ssh::params::client_package_name]) { package { $ssh::params::client_package_name: ensure => $ensure, diff --git a/manifests/server/install.pp b/manifests/server/install.pp index a4c725e75..65ea9bdbe 100644 --- a/manifests/server/install.pp +++ b/manifests/server/install.pp @@ -1,10 +1,10 @@ -class ssh::server::install ( - $ensure = present -) { +class ssh::server::install include ssh::params if !defined(Package[$ssh::params::server_package_name]) { package { $ssh::params::server_package_name: - ensure => $ensure, + ensure => $ensure, + blahblah => $ensure, + } } }