paulbsd-salt/states/openvpn_server/service.sls

9 lines
252 B
Plaintext

---
{%- from "openvpn_server/map.jinja" import openvpn_server with context %}
{%- for key, instance in openvpn_server.config.items() %}
openvpn-server-{{ key }}-service:
service.running:
- name: openvpn@{{ key }}
- enable: True
{%- endfor %}