updated php state

This commit is contained in:
Paul 2021-09-25 16:05:07 +02:00
parent 97fb5734d5
commit 0051523e8c
3 changed files with 21 additions and 7 deletions

View File

@ -17,8 +17,21 @@ php:
- php-xml - php-xml
- php-zip - php-zip
extensions: extensions:
- acpu
- curl
- exif
- gd
- json
- imagick
- readline - readline
config_file: /etc/php/7.3/fpm/php.ini - xml
- zip
config_file: ''
service: ''
fpm:
config_file: ''
config: {}
socket: '/var/run/php/php-fpm.sock'
config: config:
PHP: PHP:
engine: 'On' engine: 'On'
@ -126,7 +139,3 @@ php:
ldap: ldap:
ldap.max_links: '-1' ldap.max_links: '-1'
fpm:
config_file: '/etc/php/7.3/fpm/php-fpm.conf'
config: {}
socket: '/var/run/php/php7.3-fpm.sock'

View File

@ -2,4 +2,8 @@
{%- set defaults = salt['grains.filter_by'](default_settings, default='php') -%} {%- set defaults = salt['grains.filter_by'](default_settings, default='php') -%}
{%- set php = salt['pillar.get']('php', default=defaults, merge=True) -%} {%- set php = salt['pillar.get']('php', default=defaults, merge=True) -%}
{%- do php.update({'config_file': '/etc/php/{}/fpm/php.ini'.format(php.version)}) -%}
{%- do php.fpm.update({'config_file': '/etc/php/{}/fpm/php-fpm.conf'.format(php.version)}) -%}
{%- do php.update({'service': 'php{}-fpm'.format(php.version)}) -%}

View File

@ -1,6 +1,7 @@
--- ---
{%- from "php/map.jinja" import php with context %}
php-fpm-service: php-fpm-service:
service.running: service.running:
- name: php7.3-fpm - name: {{ php.service }}
- enable: true - enable: true
- reload: true - reload: true