File tree Expand file tree Collapse file tree 5 files changed +16
-17
lines changed
network_manager_networks/files Expand file tree Collapse file tree 5 files changed +16
-17
lines changed Original file line number Diff line number Diff line change 1
1
{% from " openvpn/map.jinja" import map with context % }
2
- {% from " openvpn/map .jinja" import multipart_param with context % }
2
+ {% from " openvpn/macros .jinja" import multipart_param with context % }
3
3
4
4
include:
5
5
- openvpn
Original file line number Diff line number Diff line change 1
- {% from "openvpn/map .jinja" import multipart_param with context %}
1
+ {% from "openvpn/macros .jinja" import multipart_param with context %}
2
2
3
3
{% - if config .daemon is defined and config .daemon == True %}
4
4
daemon
Original file line number Diff line number Diff line change
1
+ {% - macro multipart_param (value , index =None ) %}
2
+ {% - if value is string %}
3
+ {% - set value = value .split () %}
4
+ {% - endif %}
5
+ {% - if not index is none -%}
6
+ {{ value[index] }}
7
+ {% - else -%}
8
+ {% - for item in value -%}
9
+ {% - if not loop .first %} {% endif -%}
10
+ {{ item }}
11
+ {% - endfor %}
12
+ {% - endif %}
13
+ {% - endmacro -%}
Original file line number Diff line number Diff line change 22
22
),
23
23
base ='openvpn' )
24
24
%}
25
-
26
- {% - macro multipart_param (value , index =None ) %}
27
- {% - if value is string %}
28
- {% - set value = value .split () %}
29
- {% - endif %}
30
- {% - if not index is none -%}
31
- {{ value[index] }}
32
- {% - else -%}
33
- {% - for item in value -%}
34
- {% - if not loop .first %} {% endif -%}
35
- {{ item }}
36
- {% - endfor %}
37
- {% - endif %}
38
- {% - endmacro -%}
Original file line number Diff line number Diff line change 1
- {% - from "openvpn/map .jinja" import multipart_param with context -%}
1
+ {% - from "openvpn/macros .jinja" import multipart_param with context -%}
2
2
{% - set config = salt ['pillar.get' ]('openvpn:network_manager:networks:' +network_name , {}) -%}
3
3
{% - macro pairs (data ) -%}
4
4
{% - for key , value in data |dictsort -%}
You can’t perform that action at this time.
0 commit comments