forked from saltstack-formulas/openvpn-formula
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgui.sls
More file actions
21 lines (18 loc) · 673 Bytes
/
gui.sls
File metadata and controls
21 lines (18 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% if salt['grains.get']('os_family') == 'Windows' %}
# See https://github.com/OpenVPN/openvpn-gui
{% set reg_values = { 'config_dir': 'REG_SZ',
'exe_path': 'REG_SZ',
'priority': 'REG_SZ',
'ovpn_admin_group': 'REG_SZ',
'disable_save_passwords': 'REG_DWORD'} %}
{% for name, data in salt['pillar.get']('openvpn:gui', {}).items() %}
{% if name in reg_values.keys() %}
openvpn_gui_reg_{{ name }}:
reg.present:
- name: HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN
- vname: {{ name }}
- vdata: {{ data }}
- vtype: {{ reg_values[name] }}
{% endif %}
{% endfor %}
{% endif %}