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.

преди 7 години
преди 7 години
123456789101112131415161718
  1. {% from "php/ng/map.jinja" import php with context %}
  2. {% set state = 'apache2' %}
  3. {% include "php/ng/installed.jinja" %}
  4. {% if grains['os_family'] == "FreeBSD" %}
  5. {{ php.lookup.apache2.module_config }}:
  6. file.managed:
  7. - source: salt://php/ng/apache2/files/mod_php.conf.jinja
  8. - template: jinja
  9. {% if salt['pillar.get']('php:ng:use_apache_formula', True) %}
  10. - makedirs: true
  11. - require_in:
  12. - sls: apache
  13. - watch_in:
  14. - module: apache-restart
  15. {% endif %} #END: use apache formula
  16. {% endif %} #END: os = debian