Saltstack Official PHP Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 satır
579B

  1. {% from "php/ng/map.jinja" import php with context %}
  2. {% set modules = salt['pillar.get']('php:ng:modules') or [] %}
  3. {% set base_name = 'php.ng.' %}
  4. {% set existing_states = salt['cp.list_states']() %}
  5. {% set includes = [] %}
  6. {% set install = [] %}
  7. {% for module in modules %}
  8. {% set state = base_name ~ module %}
  9. {% if state in existing_states %}
  10. {% do includes.append(state) %}
  11. {% else %}
  12. {% do install.append(module) %}
  13. {% endif %}
  14. {% endfor %}
  15. include: {{ includes|json }}
  16. {% for state in install %}
  17. {% include "php/ng/installed.jinja" %}
  18. {% endfor %}