summaryrefslogtreecommitdiff
path: root/inventory
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-04-20 23:14:05 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-04-20 23:14:05 +0200
commitaa8041c8b9aa5696a374ccc5c75245a1ce6ea695 (patch)
tree1838d1d5e1191d5a2d6bccfcd46a08389c5c8c7b /inventory
parentchange default port for mz zone (diff)
mz-router: added dyndns
Diffstat (limited to 'inventory')
-rw-r--r--inventory/host_vars/mz-router.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/inventory/host_vars/mz-router.yml b/inventory/host_vars/mz-router.yml
index 356c54d0..f79de2b1 100644
--- a/inventory/host_vars/mz-router.yml
+++ b/inventory/host_vars/mz-router.yml
@@ -75,6 +75,19 @@ openwrt_mixin:
iptables -t nat -F POSTROUTING
}
+ /etc/dyndns/update.sh:
+ mode: "0755"
+ content: |
+ #!/bin/sh
+ /usr/bin/ssh -i /etc/dyndns/id_rsa -p 222 dyndns@dyn.schaaas.at mzl | logger -t dyndns
+
+ /etc/crontabs/root:
+ mode: "0755"
+ content: |
+ # run dyndns update script every 10 minutes
+ */10 * * * * /etc/dyndns/update.sh > /dev/null
+
+
openwrt_uci:
system:
- name: system