Skip to content

Commit 33b98f5

Browse files
committed
fix(jinja): don't call pillar.get
1 parent 4a1f9ed commit 33b98f5

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

openvpn/config.sls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ openvpn_config_{{ type }}_{{ name }}:
4242
type: {{ type }}
4343
user: {{ map.user }}
4444
group: {{ map.group }}
45+
config: {{ config | json }}
4546
- watch_in:
4647
- service: {{ service_id }}
4748

openvpn/files/client.jinja

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Template: {{ source }}
44

55
{% include 'openvpn/files/common_opts.jinja' %}
6-
{%- set config = salt['pillar.get']("openvpn:{}:{}".format(type, name), {}) %}
76

87
{%- if not (config.pull is defined and config.pull == False) %}
98
pull

openvpn/files/common_opts.jinja

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{% from "openvpn/map.jinja" import multipart_param with context %}
2-
{%- set config = salt['pillar.get']("openvpn:{}:{}".format(type, name), {}) %}
32

43
{%- if config.daemon is defined and config.daemon == True %}
54
daemon

0 commit comments

Comments
 (0)