diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/agent/install.pp | 14 | ||||
-rw-r--r-- | manifests/install.pp | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/manifests/agent/install.pp b/manifests/agent/install.pp index 7e41a7b..7225b20 100644 --- a/manifests/agent/install.pp +++ b/manifests/agent/install.pp @@ -9,7 +9,7 @@ class check_mk::agent::install ( if $method == 'xinetd' { if ! defined($require_method) { package { 'xinetd': - ensure => present, + ensure => latest, } } $require_method = 'Package[\'xinetd\']' @@ -24,23 +24,23 @@ class check_mk::agent::install ( } } file { "${workspace}/check_mk-agent-${version}.noarch.rpm": - ensure => present, + ensure => latest, source => "${filestore}/check_mk-agent-${version}.noarch.rpm", require => $require_method, } file { "${workspace}/check_mk-agent-logwatch-${version}.noarch.rpm": - ensure => present, + ensure => latest, source => "${filestore}/check_mk-agent-logwatch-${version}.noarch.rpm", require => $require_method, } package { 'check_mk-agent': - ensure => present, + ensure => latest, provider => 'rpm', source => "${workspace}/check_mk-agent-${version}.noarch.rpm", require => File["${workspace}/check_mk-agent-${version}.noarch.rpm"], } package { 'check_mk-agent-logwatch': - ensure => present, + ensure => latest, provider => 'rpm', source => "${workspace}/check_mk-agent-logwatch-${version}.noarch.rpm", require => [ @@ -51,12 +51,12 @@ class check_mk::agent::install ( } else { package { 'check_mk-agent': - ensure => present, + ensure => latest, name => $agent_package_name, require => $require_method, } package { 'check_mk-agent-logwatch': - ensure => present, + ensure => latest, name => $agent_logwatch_package_name, require => Package['check_mk-agent'], } diff --git a/manifests/install.pp b/manifests/install.pp index f4cd565..bb32146 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -11,7 +11,7 @@ class check_mk::install ( } } file { "${workspace}/${package}": - ensure => present, + ensure => latest, source => "${filestore}/${package}", require => File[$workspace], } |