paulbsd-salt/states/php/config.sls

28 lines
632 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "php/map.jinja" import php with context %}
2023-01-04 23:33:59 +01:00
{%- if php.config %}
2020-07-10 00:58:55 +02:00
php-config:
ini.options_present:
- name: {{ php.config_file }}
- sections: {{ php.config }}
- watch_in:
- service: php-fpm-service
{%- endif %}
2023-01-04 23:33:59 +01:00
{%- if php.fpm.config %}
2020-07-10 00:58:55 +02:00
php-fpm-config:
ini.options_present:
- name: {{ php.fpm.config_file }}
- sections: {{ php.fpm.config }}
- watch_in:
- service: php-fpm-service
{%- endif %}
{%- for extension in php.extensions %}
php-extension-enable-{{ extension }}:
cmd.run:
- name: phpenmod {{ extension }}
- watch_in:
- service: php-fpm-service
2020-10-25 16:37:33 +01:00
{%- endfor %}