diff options
author | Steffen Zieger <me@saz.sh> | 2013-05-10 05:26:58 -0700 |
---|---|---|
committer | Steffen Zieger <me@saz.sh> | 2013-05-10 05:26:58 -0700 |
commit | 962798488db91310b11b257c0c8b797c0236380d (patch) | |
tree | 712a67b57d5b380cb8fe1a0a6062e063ac575a20 /manifests/install.pp | |
parent | 08c49965861137ae79620c7ca82af572f0ef024f (diff) | |
parent | 5c4812a4f44417d398ccc39cb28593b3df3ab9f4 (diff) |
Merge pull request #30 from mbornoz/improvements
Improvements
Diffstat (limited to 'manifests/install.pp')
-rw-r--r-- | manifests/install.pp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/manifests/install.pp b/manifests/install.pp index 7d09405..3e9ad1a 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -10,14 +10,17 @@ # # class { 'rsyslog::install': } # -class rsyslog::install inherits rsyslog::params { - - package { $rsyslog::params::rsyslog_package_name: - ensure => $rsyslog::params::package_status, +class rsyslog::install { + if $rsyslog::rsyslog_package_name != false { + package { $rsyslog::rsyslog_package_name: + ensure => $rsyslog::package_status, + } } - package { $rsyslog::params::relp_package_name: - ensure => $rsyslog::params::package_status + if $rsyslog::relp_package_name != false { + package { $rsyslog::relp_package_name: + ensure => $rsyslog::package_status + } } } |