From a33f82a06f2e8f810b9f9814b1c33d061c3b3544 Mon Sep 17 00:00:00 2001 From: drebs Date: Fri, 15 Aug 2014 09:31:59 -0300 Subject: Allow multiple afraid_org() instances. --- manifests/init.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3