Skip to content

Commit

Permalink
re-instate check for package name
Browse files Browse the repository at this point in the history
  • Loading branch information
CyBeRoni committed Mar 4, 2014
1 parent aac81b6 commit 9325650
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions manifests/client/install.pp
Original file line number Diff line number Diff line change
@@ -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,
}
}
}
}
8 changes: 5 additions & 3 deletions manifests/server/install.pp
Original file line number Diff line number Diff line change
@@ -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,
}
}
}
}

0 comments on commit 9325650

Please sign in to comment.