Commit f8063bdf authored by mh's avatar mh
Browse files

this can't be done globally

parent 8316d7d0
......@@ -34,6 +34,15 @@ define php::fpm(
service{
[ "fpm-${name}.socket",
"fpm-${name}" ]:;
} -> logrotate::rule{
"fpm-error-logs-${name}":
path => '/var/www/vhosts/*/logs/fpm-error.log',
compress => true,
copytruncate => true,
dateext => true,
su => true,
su_user => $run_user,
su_group => $run_group,
}
file{
[ "${etcdir}/php-fpm.d/${name}.conf",
......@@ -72,6 +81,9 @@ define php::fpm(
tag => "systemd-${php_name}-fpm"
} -> Service<| title == 'apache' |>
} else {
Logrotate::Rule["fpm-error-logs-${name}"]{
ensure => absent,
}
Service["fpm-${name}"]{
ensure => stopped,
enable => false,
......
......@@ -21,11 +21,5 @@ class php::fpm::base(
content => template('php/fpm/fpm-kill-pool.timer.erb'),
enable => true,
active => true,
} -> logrotate::rule{
'fpm-error-logs':
path => '/var/www/vhosts/*/logs/fpm-error.log',
compress => true,
copytruncate => true,
dateext => true,
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment