69e1153
@@ -1,4 +1,8 @@
- /var/log/httpd/*log {
+ /var/log/httpd/*log
+ {% if ansible_hostname.startswith("kojipkgs") %}
+ /var/log/httpd/*.log.????-??-??
+ {% endif %}
+ {
daily
rotate 7
missingok
@@ -83,7 +83,7 @@
- apachestatus
- name: Setup logrotate to our needs
- ansible.builtin.copy: src="{{ files }}/httpd/httpd.logrotate" dest=/etc/logrotate.d/httpd
+ ansible.builtin.template: src="{{ files }}/httpd/httpd.logrotate.j2" dest=/etc/logrotate.d/httpd
tags:
- config
- apache
Related to https://pagure.io/fedora-infrastructure/issue/12398
Build succeeded. https://fedora.softwarefactory-project.io/zuul/buildset/8b9d22bad4724b9db506a5619a7dce40
This will take care of the YYYY-MM-DD ones... but there is still also a access_log one.
So perhaps 2 entries? or some regex that works for both?
rebased onto 6d4c6b0
PR updated
Build succeeded. https://fedora.softwarefactory-project.io/zuul/buildset/9996ead7b6e14a979f324267f93e13af
well, you shouldn't need *log and access_log right? the first one should match...
I think there may not be newlines between the logs to match? not 100% sure tho.
rebased onto f103010
Build succeeded. https://fedora.softwarefactory-project.io/zuul/buildset/558e5323f59e41be9572d63e771bec71
@kevin PR updated
Metadata Update from @kevin: - Pull-request tagged with: post-freeze
rebased onto 2f67aad
Build succeeded. https://fedora.softwarefactory-project.io/zuul/buildset/780e9a2db66a4c16b0ac11a6bb3408bb
Sorry this one has lingered so long. ;(
So, this will only matter on those kojipkgs servers, but it will apply to everything. Will it cause problems for non matching hosts?
Or perhaps can we just do a specific one for kojipkgs instead of changing every one all over?
rebased onto 5561372
Build succeeded. https://fedora.softwarefactory-project.io/zuul/buildset/cfd4e79ee0f6418ea232627358f21368
@kevin I've just updated with condition ! Can you test this ??
That looks ok, but... this is a file, not a template. We would need to move it to a .j2 file and change the copy to a template in the ansible play(s) that call it.
Can you do that?
Sorry this is drawing out so long. Thanks for working on it!
rebased onto 8a9adc5
That looks ok, but... this is a file, not a template. We would need to move it to a .j2 file and change the copy to a template in the ansible play(s) that call it. Can you do that? Sorry this is drawing out so long. Thanks for working on it!
yes I've just updated the PR , thank you
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci https://fedora.softwarefactory-project.io/zuul/buildset/dd415917788e44b9b66ba965f46decef
rebased onto e9734b9
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci https://fedora.softwarefactory-project.io/zuul/buildset/418b2bb4b7614832aeb25a40b5c17869
Thanks!
Pull-Request has been merged by kevin
Related to https://pagure.io/fedora-infrastructure/issue/12398