{%- do conf_settings.update({key: value.replace(first_version, version)}) %} | {%- do conf_settings.update({key: value.replace(first_version, version)}) %} | ||||
{%- endif %} | {%- endif %} | ||||
{%- endfor %} | {%- endfor %} | ||||
{%- do conf_settings.global.update({'pid': '/var/run/php' + version + '-fpm.pid' }) %} | |||||
{%- do conf_settings.global.update({'pid': '/run/php/php' + version + '-fpm.pid' }) %} | |||||
{%- do conf_settings.global.update({'error_log': '/var/log/php' + version + '-fpm.log' }) %} | {%- do conf_settings.global.update({'error_log': '/var/log/php' + version + '-fpm.log' }) %} | ||||
php_fpm_ini_config_{{ version }}: | php_fpm_ini_config_{{ version }}: |
'group': 'root', | 'group': 'root', | ||||
'defaults': odict([ | 'defaults': odict([ | ||||
('global', odict([ | ('global', odict([ | ||||
('pid', '/var/run/php' + php_version + '-fpm.pid'), | |||||
('pid', '/run/php/php' + php_version + '-fpm.pid'), | |||||
('error_log', '/var/log/php' + php_version + '-fpm.log'), | ('error_log', '/var/log/php' + php_version + '-fpm.log'), | ||||
])), | ])), | ||||
('include', confdir + '/fpm/pool.d/*.conf'), | ('include', confdir + '/fpm/pool.d/*.conf'), |