diff --git a/wgkex/init.sls b/wgkex/init.sls index 593a42e..89b6446 100644 --- a/wgkex/init.sls +++ b/wgkex/init.sls @@ -12,17 +12,10 @@ python3-pyroute2: file.managed: - source: salt://wgkex/wgkex.service -/etc/systemd/system/wgkex-ffdon.service: - file.managed: - - source: salt://wgkex/wgkex-ffdon.service - /etc/wgkex.yaml: file.managed: - source: salt://wgkex/wgkex.yaml -/etc/wgkex-ffdon.yaml: - file.managed: - - source: salt://wgkex/wgkex-ffdon.yaml wgkex-service: service.running: @@ -33,15 +26,6 @@ wgkex-service: - watch: - file: /etc/wgkex.yaml -wgkex-ffdon-service: - service.dead: - - name: wgkex-ffdon - - enable: False - - require: - - file: /etc/wgkex-ffdon.yaml - - watch: - - file: /etc/wgkex-ffdon.yaml - systemd-reload-wgkex: cmd.run: - name: systemctl --system daemon-reload @@ -50,12 +34,4 @@ systemd-reload-wgkex: - watch_in: - service: wgkex-service -systemd-reload-wgkex-ffdon: - cmd.run: - - name: systemctl --system daemon-reload - - onchanges: - - file: /etc/systemd/system/wgkex-ffdon.service - - watch_in: - - service: wgkex-ffdon-service - {% endif %}