paulbsd-salt/states/php/map.jinja

9 lines
466 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
{%- import_yaml "php/defaults.yaml" as default_settings -%}
{%- set defaults = salt['grains.filter_by'](default_settings, default='php') -%}
2021-09-25 16:05:07 +02:00
{%- 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)}) -%}