Skip to content

Commit

Permalink
fix(service): make sure the now obsolete systemd services are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
alxwr committed Aug 27, 2019
1 parent 85d2458 commit 2dfae46
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openvpn/service.sls
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
and openvpn-{client,server} as their service.
#}
{% set service_name = map.get(type, {}).get("service", map.service) ~ '@' ~ name %}
{#-
For an successful upgrade we need to make sure the old services are deactivated.
This affects at least Debian.
#}
obsolete_openvpn_{{ name }}_service:
service.dead:
- name: {{ map.service ~ '@' ~ name }}
- enable: False
{% else %}
{% set service_name = map.service ~ '_' ~ name %}
{% endif %}
Expand Down

0 comments on commit 2dfae46

Please sign in to comment.