Bladeren bron

Merge 2ba7c562f0 into 9c69a4e906

pull/230/merge
Marius van Witzenburg 1 jaar geleden
bovenliggende
commit
8191fabb29
No account linked to committer's email address
2 gewijzigde bestanden met toevoegingen van 23 en 2 verwijderingen
  1. +22
    -1
      php/apache2/ini.sls
  2. +1
    -1
      php/apache2/install.sls

+ 22
- 1
php/apache2/ini.sls Bestand weergeven

@@ -4,7 +4,27 @@
{%- from tplroot ~ "/ini.jinja" import php_ini %}

{%- set settings = php.ini.defaults %}
{%- do settings.update(php.apache2.ini.settings) %}
{%- for key, value in php.apache2.ini.settings.items() %}
{%- if settings[key] is defined %}
{%- do settings[key].update(value) %}
{%- else %}
{%- do settings.update({key: value}) %}
{%- endif %}
{%- endfor %}

{%- set pillar_php_version = salt['pillar.get']('php:version', '7.0') %}
{%- if pillar_php_version is iterable and pillar_php_version is not string %}
{%- for version in pillar_php_version %}
{%- set first_version = pillar_php_version[0]|string %}
{%- set ini = php.lookup.apache2.ini|replace(first_version, version) %}
php_apache2_ini_{{ version }}:
{{ php_ini(ini,
'php_apache2_ini_' ~ version,
php.apache2.ini.opts,
settings
) }}
{%- endfor %}
{%- else %}

php_apache2_ini:
{{ php_ini(php.lookup.apache2.ini,
@@ -12,3 +32,4 @@ php_apache2_ini:
php.apache2.ini.opts,
settings
) }}
{%- endif %}

+ 1
- 1
php/apache2/install.sls Bestand weergeven

@@ -18,6 +18,6 @@
- require_in:
- sls: apache
- watch_in:
- module: apache-restart
- module: apache-service-running-restart
{%- endif %} #END: use apache formula
{%- endif %} #END: os = debian

Laden…
Annuleren
Opslaan