aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2011-03-25 18:07:13 -0300
committerdrebs <drebs@riseup.net>2011-03-25 18:07:13 -0300
commit6d2697696e0c16532b4c8fa68253b254417f8833 (patch)
tree5dedbc3f0c0cb530e0bfcd7ddbc54ac4092e51fc /manifests/init.pp
downloadpuppet-dyndns-6d2697696e0c16532b4c8fa68253b254417f8833.tar.gz
puppet-dyndns-6d2697696e0c16532b4c8fa68253b254417f8833.tar.bz2
initial commit with afraid.org defs
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp15
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..c2cb305
--- /dev/null
+++ b/manifests/init.pp
@@ -0,0 +1,15 @@
+class dyndns {
+
+ # afraid.org cron
+ define afraid_org($hash, $hour = '*', $minute = 0) {
+ cron { "afraid.org dynamic dns"
+ command => "/usr/bin/wget -q -O /dev/null -o /dev/null --read-timeout=0.0 --waitretry=5 --tries=400 --background http://freedns.afraid.org/dynamic/update.php?$hash",
+ user => "root",
+ hour => $hour,
+ minute => $minute,
+ ensure => present,
+ }
+ }
+
+}
+