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.

22 lines
572B

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