aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {