comparison modules/website/manifests/php.pp @ 400:f354100b688a

Switch to Ubuntu-standard PHP FPM socket dir Ubuntu puts /tmp and /run on tmpfs, which gets wiped each reboot. While these directories *can* be nuked, they aren't on other platforms. Using the old paths, Puppet had to recreate the directory each boot. Using the new paths, Ubuntu handles creation within the systemd config. CentOS should just create once, migrate and work.
author IBBoard <dev@ibboard.co.uk>
date Wed, 20 Apr 2022 19:11:39 +0100
parents 2c6065b5be5e
children 76d18a918e7f
comparison
equal deleted inserted replaced
399:2c6065b5be5e 400:f354100b688a
18 ensure => present, 18 ensure => present,
19 manage_repos => false, 19 manage_repos => false,
20 fpm => true, 20 fpm => true,
21 fpm_pools => { 21 fpm_pools => {
22 'www' => { 22 'www' => {
23 'listen' => '/run/php-fpm/www.sock',
24 'listen_owner' => $listener_user, 23 'listen_owner' => $listener_user,
25 'listen_group' => $listener_group, 24 'listen_group' => $listener_group,
25 'listen' => '/run/php/php-fpm.sock',
26 'slowlog' => '/var/log/php-fpm/www-slow.log', 26 'slowlog' => '/var/log/php-fpm/www-slow.log',
27 'security_limit_extensions' => ['.php', '.html'], 27 'security_limit_extensions' => ['.php', '.html'],
28 'php_admin_value' => { 28 'php_admin_value' => {
29 'memory_limit' => '256M', 29 'memory_limit' => '256M',
30 }, 30 },