diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-05 20:34:51 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-05 20:34:51 +0200 |
commit | c3770f57a3227f0b9e93e209811ba347b1408bb7 (patch) | |
tree | c2311419379ec992c76e5d4d6f6f937b27a9eef3 /data/templates/dynamic-dns | |
parent | 108979391c5811963a6fb3e20b8baec446814b05 (diff) | |
download | vyos-1x-c3770f57a3227f0b9e93e209811ba347b1408bb7.tar.gz vyos-1x-c3770f57a3227f0b9e93e209811ba347b1408bb7.zip |
dynamic-dns: T2230: move inlined templates to dedicated files
Diffstat (limited to 'data/templates/dynamic-dns')
-rw-r--r-- | data/templates/dynamic-dns/ddclient.conf.tmpl | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/data/templates/dynamic-dns/ddclient.conf.tmpl b/data/templates/dynamic-dns/ddclient.conf.tmpl new file mode 100644 index 000000000..22cb38f4e --- /dev/null +++ b/data/templates/dynamic-dns/ddclient.conf.tmpl @@ -0,0 +1,49 @@ + +### Autogenerated by dynamic_dns.py ### +daemon=1m +syslog=yes +ssl=yes +pid={{ pid_file }} +cache={{ cache_file }} + +{% for interface in interfaces -%} + +# +# ddclient configuration for interface "{{ interface.interface }}": +# +{% if interface.web_url -%} +use=web, web='{{ interface.web_url}}' {%- if interface.web_skip %}, web-skip='{{ interface.web_skip }}'{% endif %} +{% else -%} +use=if, if={{ interface.interface }} +{% endif -%} + +{% for rfc in interface.rfc2136 -%} +{% for record in rfc.record %} +# RFC2136 dynamic DNS configuration for {{ record }}.{{ rfc.zone }} +server={{ rfc.server }} +protocol=nsupdate +password={{ rfc.keyfile }} +ttl={{ rfc.ttl }} +zone={{ rfc.zone }} +{{ record }} +{% endfor -%} +{% endfor -%} + +{% for srv in interface.service %} +{% for host in srv.host %} +# DynDNS provider configuration for {{ host }} +protocol={{ srv.protocol }}, +max-interval=28d, +login={{ srv.login }}, +password='{{ srv.password }}', +{% if srv.server -%} +server={{ srv.server }}, +{% endif -%} +{% if srv.zone -%} +zone={{ srv.zone }}, +{% endif -%} +{{ host }} +{% endfor %} +{% endfor %} + +{% endfor %} |