File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 33
33
- file: {{ state }}
34
34
{% - endfor -%}
35
35
{% endmacro %}
36
+
37
+ {% - macro format_kwargs (kwarg ) -%}
38
+ {% - filter indent (4) %}
39
+ {% - for k , v in kwarg |dictsort () %}
40
+ - {{ k }}: {{ v }}
41
+ {% - endfor %}
42
+ {% - endfilter %}
43
+ {% - endmacro %}
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ # vim: ft=sls
3
+
4
+ include:
5
+ - .install
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ # vim: ft=sls
3
+
4
+ {# - Get the `tplroot` from `tpldir` #}
5
+ {%- set tplroot = tpldir.split(' /' )[0 ] %}
6
+ {%- from tplroot ~ " /map.jinja" import php with context % }
7
+ {%- from tplroot ~ " /macro.jinja" import format_kwargs with context % }
8
+
9
+ php/ repo/ install:
10
+ pkgrepo.managed:
11
+ {{- format_kwargs(php.repo) }}
You can’t perform that action at this time.
0 commit comments