aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2014-09-01 14:49:00 -0300
committerdrebs <drebs@riseup.net>2014-09-01 14:49:00 -0300
commitce9e9dc49da4c8320141b20d333e393e88dc3d8b (patch)
tree3aeef289332667ce6713fd8a285e2000de7b7868
parentfddea1d8fe92c6f2cb4d40127887ddad6f1286c9 (diff)
downloadpuppet-dyndns-ce9e9dc49da4c8320141b20d333e393e88dc3d8b.tar.gz
puppet-dyndns-ce9e9dc49da4c8320141b20d333e393e88dc3d8b.tar.bz2
Avoid possible double wget definition.HEADmaster
-rw-r--r--manifests/init.pp7
1 files changed, 5 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index c2db3c5..0a98d49 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -15,8 +15,11 @@ class dyndns {
ensure => absent,
}
- package { 'wget':
- ensure => present,
+ # Might be defined elsewhere
+ if !defined(Package['wget']) {
+ package { 'wget':
+ ensure => installed,
+ }
}
}