diff --git a/manifests/client/install.pp b/manifests/client/install.pp index 6d7362dcd..86771d770 100644 --- a/manifests/client/install.pp +++ b/manifests/client/install.pp @@ -1,7 +1,9 @@ class ssh::client::install { - if !defined(Package[$ssh::params::client_package_name]) { - package { $ssh::params::client_package_name: - ensure => $ssh::client::ensure, + if $ssh::params::client_package_name { + if !defined(Package[$ssh::params::client_package_name]) { + package { $ssh::params::client_package_name: + ensure => $ssh::client::ensure, + } } } } diff --git a/manifests/server/install.pp b/manifests/server/install.pp index 6d88157b5..58b5ca1d3 100644 --- a/manifests/server/install.pp +++ b/manifests/server/install.pp @@ -1,8 +1,10 @@ class ssh::server::install { include ssh::params - if !defined(Package[$ssh::params::server_package_name]) { - package { $ssh::params::server_package_name: - ensure => $ssh::server::ensure, + if $ssh::params::server_package_name { + if !defined(Package[$ssh::params::server_package_name]) { + package { $ssh::params::server_package_name: + ensure => $ssh::server::ensure, + } } } }