aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2014-08-15 09:31:59 -0300
committerdrebs <drebs@riseup.net>2014-08-15 13:16:37 -0300
commita33f82a06f2e8f810b9f9814b1c33d061c3b3544 (patch)
tree3f387b370c546b7dc575b43c4f6b3bedf31074fe
parent2cb39d9ebc2179548c9a62f54c76d9b41493f63f (diff)
downloadpuppet-dyndns-a33f82a06f2e8f810b9f9814b1c33d061c3b3544.tar.gz
puppet-dyndns-a33f82a06f2e8f810b9f9814b1c33d061c3b3544.tar.bz2
Allow multiple afraid_org() instances.
-rw-r--r--manifests/init.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index a3dd3d8..d234841 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,7 +1,7 @@
class dyndns {
# FreeDNS cron
define afraid_org($hash, $hour = '*', $minute = 0) {
- cron { "afraid.org dynamic dns":
+ cron { "afraid.org dynamic dns: $name":
command => "/usr/bin/wget -q -O /dev/null -o /dev/null --read-timeout=0.0 --waitretry=5 --tries=400 --background https://freedns.afraid.org/dynamic/update.php?$hash > /dev/null 2>&1",
user => "root",
hour => $hour,
@@ -9,6 +9,12 @@ class dyndns {
ensure => present,
}
}
+
+ # TODO: remove after all nodes have applied this
+ cron { "afraid.org dynamic dns":
+ ensure => absent,
+ }
+
}
class dyndns::inadyn {