diff options
author | drebs <drebs@riseup.net> | 2014-08-15 09:31:59 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2014-08-15 13:16:37 -0300 |
commit | a33f82a06f2e8f810b9f9814b1c33d061c3b3544 (patch) | |
tree | 3f387b370c546b7dc575b43c4f6b3bedf31074fe | |
parent | 2cb39d9ebc2179548c9a62f54c76d9b41493f63f (diff) | |
download | puppet-dyndns-a33f82a06f2e8f810b9f9814b1c33d061c3b3544.tar.gz puppet-dyndns-a33f82a06f2e8f810b9f9814b1c33d061c3b3544.tar.bz2 |
Allow multiple afraid_org() instances.
-rw-r--r-- | manifests/init.pp | 8 |
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 { |