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 11{% 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 % }
33
44include:
55 - 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 %}
22
33{% - if config .daemon is defined and config .daemon == True %}
44daemon
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 2222 ),
2323 base ='openvpn' )
2424 %}
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 -%}
22{% - set config = salt ['pillar.get' ]('openvpn:network_manager:networks:' +network_name , {}) -%}
33{% - macro pairs (data ) -%}
44{% - for key , value in data |dictsort -%}
You can’t perform that action at this time.
0 commit comments