Skip to content

Commit

Permalink
fix(jinja): don't call pillar.get
Browse files Browse the repository at this point in the history
  • Loading branch information
alxwr committed Jul 13, 2019
1 parent 4a1f9ed commit 33b98f5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions openvpn/config.sls
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ openvpn_config_{{ type }}_{{ name }}:
type: {{ type }}
user: {{ map.user }}
group: {{ map.group }}
config: {{ config | json }}
- watch_in:
- service: {{ service_id }}
Expand Down
1 change: 0 additions & 1 deletion openvpn/files/client.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Template: {{ source }}

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

{%- if not (config.pull is defined and config.pull == False) %}
pull
Expand Down
1 change: 0 additions & 1 deletion openvpn/files/common_opts.jinja
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% from "openvpn/map.jinja" import multipart_param with context %}
{%- set config = salt['pillar.get']("openvpn:{}:{}".format(type, name), {}) %}

{%- if config.daemon is defined and config.daemon == True %}
daemon
Expand Down

0 comments on commit 33b98f5

Please sign in to comment.