9 lines
466 B
Django/Jinja
9 lines
466 B
Django/Jinja
{%- import_yaml "php/defaults.yaml" as default_settings -%}
|
|
|
|
{%- set defaults = salt['grains.filter_by'](default_settings, default='php') -%}
|
|
|
|
{%- 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)}) -%} |