Hello, I have created a patch for the following issue: https://pagure.io/fedora-infrastructure/issue/6010 Please let me know if something is not okay. -- Sincerely, Denis-Cosmin Nutiu
From 7a826b28eb1cfe9bc5541dfe65bf88a4ae576f16 Mon Sep 17 00:00:00 2001 From: Denis Nutiu <metonymy@xxxxxxxxxxxxxxxxx> Date: Sat, 6 May 2017 12:35:35 +0000 Subject: [PATCH] Adding logrotate for Jenkins --- roles/jenkins/master/files/jenkins.logrotate | 9 +++++++++ roles/jenkins/master/tasks/main.yml | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 roles/jenkins/master/files/jenkins.logrotate diff --git a/roles/jenkins/master/files/jenkins.logrotate b/roles/jenkins/master/files/jenkins.logrotate new file mode 100644 index 0000000..7d74a85 --- /dev/null +++ b/roles/jenkins/master/files/jenkins.logrotate @@ -0,0 +1,9 @@ +/var/log/jenkins/jenkins.log { + rotate 5 + weekly + compress + delaycompress + missingok + notifempty + copytruncate +} diff --git a/roles/jenkins/master/tasks/main.yml b/roles/jenkins/master/tasks/main.yml index a9a6a7a..e2fd152 100644 --- a/roles/jenkins/master/tasks/main.yml +++ b/roles/jenkins/master/tasks/main.yml @@ -56,6 +56,17 @@ - jenkins/master - config +- name: install jenkins logrotate file + copy: > + src="jenkins.logrotate" + dest="/etc/logrotate.d/jenkins" + notify: + - restart jenkins + tags: + - jenkins + - jenkins/master + - config + - name: install jenkins launcher config file copy: > src="jenkins.conf" -- 1.8.3.1
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx