2018-01-30 14:56:35 +01:00
|
|
|
{% from "php/ng/map.jinja" import php with context %}
|
|
|
|
|
2015-02-25 21:51:16 +01:00
|
|
|
{% set state = 'apache2' %}
|
|
|
|
{% include "php/ng/installed.jinja" %}
|
2018-01-30 14:56:35 +01:00
|
|
|
|
|
|
|
{% if grains['os_family'] == "FreeBSD" %}
|
|
|
|
{{ php.lookup.apache2.module_config }}:
|
|
|
|
file.managed:
|
|
|
|
- source: salt://php/ng/apache2/files/mod_php.conf.jinja
|
|
|
|
- template: jinja
|
|
|
|
{% if salt['pillar.get']('php:ng:use_apache_formula', True) %}
|
|
|
|
- makedirs: true
|
|
|
|
- require_in:
|
|
|
|
- sls: apache
|
|
|
|
- watch_in:
|
|
|
|
- module: apache-restart
|
|
|
|
{% endif %} #END: use apache formula
|
|
|
|
{% endif %} #END: os = debian
|