Jérémy Lecour
9a65312190
evolinux-base: disable logcheck monitoring of journald only if journald.logfiles exists
2024-04-18 15:10:01 +02:00
William Hirigoyen
d1410e38a1
evolinux-base/logcheck: fix conf patch, journal check was not disabled when asked
2024-04-16 10:25:13 +02:00
Brice Waegeneire
679e170dce
evolinux-base: use separate default config file for rsyslog
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2625|6|2619|7|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/376//ansiblelint">Evolix » ansible-roles » unstable #376</a>
gitea/ansible-roles/pipeline/head This commit looks good
2023-10-18 15:10:35 +02:00
Brice Waegeneire
53aab6f405
evolinux-base: Add comments structure in logs
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2628|11|2617|10|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/327//ansiblelint">Evolix » ansible-roles » unstable #327</a>
gitea/ansible-roles/pipeline/head This commit looks good
2023-08-23 15:48:45 +02:00
Brice Waegeneire
fe369257ed
evolinux-base: Limit journald to 1 day
2023-08-23 15:48:42 +02:00
Brice Waegeneire
0e1fe0e81f
evolinux-base: Disable logcheck monitoring of journald
2023-08-23 15:05:10 +02:00
Jérémy Lecour
8f25dfe041
evolinux-base: syntax
2023-03-18 18:40:03 +01:00
Jérémy Lecour
9b479f9c05
evolinux-base: logs are rotated with dateext by default
2021-09-30 12:07:02 +02:00
Jérémy Lecour
2ed77c60f0
Improve Ansible syntax
...
replace « x | changed » by « x is changed »
add explicit « bool » filter
use « length » filter instead of string comparison
2021-05-09 23:06:42 +02:00
Ludovic Poujol
dc1c78e08a
evolinux-base: Fix our zsyslog rotate config that doesn't work on Debian 10
...
continuous-integration/drone/push Build is passing
I've noticed that some log files, especially /var/log/syslog were empty.
After investigating, I've realized that it was happening after a log
rotation by logrotate.
The old mechanism, `invoke-rc.d rsyslog rotate` isn't working anymore on
Debian 10. It will fail with a not so explicit message :
[FAIL] Closing open files: rsyslogd failed!
Long story short, it seems that the pid file (`/run/rsyslogd.pid`) isn't
created any more, so start-stop-daemon as used by /etc/init.d/rsyslog
will fail. Explaining the error message.
Debian 10 rsyslog now brings `/usr/lib/rsyslog/rsyslog-rotate` that is
used by logrotate. It will send the signal HUP the 'right' way, so
rsyslog will be aware of the log rotation.
Sadly, this script isn't present in Debian 9 nor 8, so the logrotate
configuration for rsyslog is now a template, using the right command for
the right version.
2019-11-22 16:48:19 +01:00
Jérémy Lecour
664a926caa
evolinux: fix rotate value customization
...
with "[0-9]*" too much lines would be changed
2017-07-03 17:57:00 +02:00
Jérémy Lecour
294cea44e8
Change mode with leading 0, but still as String
2017-03-23 16:59:43 +01:00
Jérémy Lecour
5a4f838375
Unix mode MUST be a quoted string when using octal notation
2017-01-05 12:03:54 +01:00
Jérémy Lecour
e1654414ea
evolinux-base: flush handlers at end of each include
2017-01-03 17:02:23 +01:00
Jérémy Lecour
130e1f2b0e
evolinux-base: add conditions for most of tasks
2017-01-03 16:38:04 +01:00
Jérémy Lecour
65b9865510
evolinux-base: copy logorotate files
...
there was a syntax error, the source was copied inside the target
2016-12-26 12:11:46 +01:00
Jérémy Lecour
c0ab8f99ce
Squash: conventions, evolinux, etc-git…
2016-12-21 16:12:30 +01:00