diff options
author | Micah Anderson <micah@riseup.net> | 2009-12-22 20:00:51 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2009-12-22 20:00:51 -0500 |
commit | ed86ae3ba62c53f480047ac8dd0488ef84878fa2 (patch) | |
tree | 98b913cb10d4b5f9464a6faaeeb1508c3b9e53c5 /manifests/client | |
parent | 511afffde2c5375fd685133f6c697c3ffeaaed8b (diff) |
we may have iproute installed elsewhere, by doing it in the munin
module, we risk duplicate definitions. this commit fixes that by doing
a check to see if it is already defined elsewhere, and if it is not,
then it installs the package
Diffstat (limited to 'manifests/client')
-rw-r--r-- | manifests/client/debian.pp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/manifests/client/debian.pp b/manifests/client/debian.pp index 0bc0414..8dfa35f 100644 --- a/manifests/client/debian.pp +++ b/manifests/client/debian.pp @@ -1,6 +1,8 @@ class munin::client::debian inherits munin::client::package { # the plugin will need that - package { "iproute": ensure => installed } + if !defined(Package["iproute"]) { + package { "iproute": ensure => installed } + } Service["munin-node"]{ # sarge's munin-node init script has no status |