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.

19 lines
528B

  1. {% from "php/map.jinja" import php with context %}
  2. {% set state = 'apache2' %}
  3. {% include "php/installed.jinja" %}
  4. {% if grains['os_family'] == "FreeBSD" %}
  5. {{ php.lookup.apache2.module_config }}:
  6. file.managed:
  7. - source: salt://php/apache2/files/mod_php.conf.jinja
  8. - template: jinja
  9. {% if salt['pillar.get']('php: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