We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14bb2b3 commit a126bf6Copy full SHA for a126bf6
php/ng/modules.sls
@@ -0,0 +1,23 @@
1
+{% from "php/ng/map.jinja" import php with context %}
2
+
3
+{% set modules = salt['pillar.get']('php:ng:modules') or [] %}
4
+{% set base_name = 'php.ng.' %}
5
+{% set existing_states = salt['cp.list_states']() %}
6
7
+{% set includes = [] %}
8
+{% set install = [] %}
9
10
+{% for module in modules %}
11
+{% set state = base_name + module %}
12
+{% if state in existing_states %}
13
+{% do includes.append(state) %}
14
+{% else %}
15
+{% do install.append(module) %}
16
+{% endif %}
17
+{% endfor %}
18
19
+include: {{ includes|json }}
20
21
+{% for state in install %}
22
+{% include "php/ng/installed.jinja" %}
23
0 commit comments