Pārlūkot izejas kodu

php.ng.modules: install modules...

tags/v0.34.0^2
Adrien "ze" Urban pirms 5 gadiem
vecāks
revīzija
a126bf658b
1 mainītis faili ar 23 papildinājumiem un 0 dzēšanām
  1. +23
    -0
      php/ng/modules.sls

+ 23
- 0
php/ng/modules.sls Parādīt failu

@@ -0,0 +1,23 @@
{% from "php/ng/map.jinja" import php with context %}

{% set modules = salt['pillar.get']('php:ng:modules') or [] %}
{% set base_name = 'php.ng.' %}
{% set existing_states = salt['cp.list_states']() %}

{% set includes = [] %}
{% set install = [] %}

{% for module in modules %}
{% set state = base_name + module %}
{% if state in existing_states %}
{% do includes.append(state) %}
{% else %}
{% do install.append(module) %}
{% endif %}
{% endfor %}

include: {{ includes|json }}

{% for state in install %}
{% include "php/ng/installed.jinja" %}
{% endfor %}

Notiek ielāde…
Atcelt
Saglabāt