paulbsd-salt/states/openvpn_server/service.sls

9 lines
252 B
Plaintext
Raw Normal View History

2021-12-29 15:45:48 +01:00
---
{%- 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 %}