Skip to content
Snippets Groups Projects
Commit 4943a7a4 authored by Christophe Haen's avatar Christophe Haen
Browse files

Merge branch 'logrotate' into 'qa'

Add template for logrotate and the default installed file does not point to right location

See merge request ai/it-puppet-module-dirac!40
parents ba98803e 5ec2d83c
No related branches found
No related tags found
No related merge requests found
/opt/dirac/data/log/nginx/*log {
create 0644 nginx nginx
daily
rotate 10
missingok
notifempty
compress
sharedscripts
postrotate
/bin/kill -USR1 `cat /opt/rh/nginx16/root/var/run/nginx.pid 2>/dev/null` 2>/dev/null || true
endscript
}
......@@ -237,6 +237,15 @@ class dirac ($dirac_user = 'dirac', $dirac_group = 'dirac',
content => template($nginx_tpl_path),
}
file { '/etc/logrotate.d/nginx16-nginx':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
require => Package['nginx16'],
source => 'puppet:///modules/dirac/logrotate_nginx',
}
service { 'nginx16-nginx':
ensure => running,
require => [Package['nginx16'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment