Skip to content

Commit

Permalink
fix(ifconfig_pool_persist.sls): fix salt-lint errors
Browse files Browse the repository at this point in the history
```bash
Examining openvpn/ifconfig_pool_persist.sls of type state
[206] Jinja variables should have spaces before and after: {{ var_name }}
openvpn/ifconfig_pool_persist.sls:7
    - name: {{ map.conf_dir }}/{{filename}}

[206] Jinja variables should have spaces before and after: {{ var_name }}
openvpn/ifconfig_pool_persist.sls:20
      - service: openvpn_{{name}}_service
```
  • Loading branch information
myii committed Oct 9, 2019
1 parent 1b3f7f6 commit 6969083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openvpn/ifconfig_pool_persist.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{%- for filename, config in salt['pillar.get']('openvpn', {}).get('ifconfig_pool_persist', {}).items() %}
openvpn_config_ifconfig_pool_persist_{{ filename }}:
file.managed:
- name: {{ map.conf_dir }}/{{filename}}
- name: {{ map.conf_dir }}/{{ filename }}
- source: salt://openvpn/files/ifconfig_pool_persist.jinja
- template: jinja
- context:
Expand All @@ -17,7 +17,7 @@ openvpn_config_ifconfig_pool_persist_{{ filename }}:
{% for type, names in salt['pillar.get']('openvpn', {}).items() %}
{% if type in ['client', 'server', 'peer'] %}
{% for name in names %}
- service: openvpn_{{name}}_service
- service: openvpn_{{ name }}_service
{% endfor %}
{% endif %}
{% endfor %}
Expand Down

0 comments on commit 6969083

Please sign in to comment.