upstream.ipv6-tunnel: fix ipv6-tunnel-update.sh for upstream2

This commit is contained in:
Astro 2018-04-14 23:50:55 +02:00
parent c941f18f06
commit 14c60093cb
2 changed files with 12 additions and 11 deletions

View File

@ -1,3 +1,5 @@
#!yaml|gpg
upstream: upstream:
interface: up2 interface: up2
nat66-interface: up2 nat66-interface: up2

View File

@ -30,8 +30,8 @@ curl:
[Network] [Network]
Tunnel=ipv6 Tunnel=ipv6
{%- if pillar['ipv6-tunnel'].get('tunnelbroker') -%} {% if pillar['ipv6-tunnel'].get('tunnelbroker') %}
/etc/cron.hourly/ipv6-tunnel-update.sh /etc/cron.hourly/ipv6-tunnel-update.sh:
file.managed: file.managed:
- source: salt://upstream/ipv6-tunnel-update.sh - source: salt://upstream/ipv6-tunnel-update.sh
- template: 'jinja' - template: 'jinja'
@ -41,18 +41,17 @@ curl:
- pkg: curl - pkg: curl
cron: cron:
service: service.running:
- enabled - enable: True
- running - reload: True
- watch: - watch:
- file: /etc/cron.hourly/ipv6-tunnel-update.sh - file: /etc/cron.hourly/ipv6-tunnel-update.sh
{%- endif -%} {% endif %}
systemd-networkd: autostart-systemd-networkd:
service: service.running:
- enabled - name: systemd-networkd
- running watch:
- watch:
- file: /etc/systemd/network/ipv6.netdev - file: /etc/systemd/network/ipv6.netdev
- file: /etc/systemd/network/ipv6.network - file: /etc/systemd/network/ipv6.network
- file: /etc/systemd/network/ipv6-up.network - file: /etc/systemd/network/ipv6-up.network