upstream.ipv6-tunnel: fix ipv6-tunnel-update.sh for upstream2
This commit is contained in:
parent
c941f18f06
commit
14c60093cb
|
@ -1,3 +1,5 @@
|
|||
#!yaml|gpg
|
||||
|
||||
upstream:
|
||||
interface: up2
|
||||
nat66-interface: up2
|
||||
|
|
|
@ -30,8 +30,8 @@ curl:
|
|||
[Network]
|
||||
Tunnel=ipv6
|
||||
|
||||
{%- if pillar['ipv6-tunnel'].get('tunnelbroker') -%}
|
||||
/etc/cron.hourly/ipv6-tunnel-update.sh
|
||||
{% if pillar['ipv6-tunnel'].get('tunnelbroker') %}
|
||||
/etc/cron.hourly/ipv6-tunnel-update.sh:
|
||||
file.managed:
|
||||
- source: salt://upstream/ipv6-tunnel-update.sh
|
||||
- template: 'jinja'
|
||||
|
@ -41,18 +41,17 @@ curl:
|
|||
- pkg: curl
|
||||
|
||||
cron:
|
||||
service:
|
||||
- enabled
|
||||
- running
|
||||
service.running:
|
||||
- enable: True
|
||||
- reload: True
|
||||
- watch:
|
||||
- file: /etc/cron.hourly/ipv6-tunnel-update.sh
|
||||
{%- endif -%}
|
||||
{% endif %}
|
||||
|
||||
systemd-networkd:
|
||||
service:
|
||||
- enabled
|
||||
- running
|
||||
- watch:
|
||||
autostart-systemd-networkd:
|
||||
service.running:
|
||||
- name: systemd-networkd
|
||||
watch:
|
||||
- file: /etc/systemd/network/ipv6.netdev
|
||||
- file: /etc/systemd/network/ipv6.network
|
||||
- file: /etc/systemd/network/ipv6-up.network
|
||||
|
|
Loading…
Reference in New Issue