ansible-roles/evolinux-base
Ludovic Poujol dc1c78e08a
All checks were successful
continuous-integration/drone/push Build is passing
evolinux-base: Fix our zsyslog rotate config that doesn't work on Debian 10
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
..
defaults Merge branch 'buster' into unstable 2019-09-23 18:34:35 +02:00
files evolinux-base: Fix our zsyslog rotate config that doesn't work on Debian 10 2019-11-22 16:48:19 +01:00
handlers use role ntpd in evolinux-base 2017-08-31 03:31:00 +02:00
meta change repositories URL 2019-03-21 15:31:58 +01:00
tasks evolinux-base: Fix our zsyslog rotate config that doesn't work on Debian 10 2019-11-22 16:48:19 +01:00
templates evolinux-base: Fix our zsyslog rotate config that doesn't work on Debian 10 2019-11-22 16:48:19 +01:00
tests disable some parts of evolinux-base in tests 2017-04-24 09:46:43 +02:00
vars evolinux: finer grained kernel configuration 2017-03-30 15:33:23 +02:00
.z_kitchen.yml evolinux-base: improve the kitchen recipe 2017-04-20 15:51:48 +02:00
README.md evolinux-base: allow ssh for current user 2017-10-07 13:12:03 +02:00

evolinux-base

Various tasks for Evolinux setup.

Tasks

  • hostname :
  • kernel :
  • apt :
  • fstab :
  • packages :
  • system :
  • root :
  • ssh :
  • postfix :
  • logs :
  • default_www :
  • hardware :
  • provider_online :
  • provider_orange_fce :

Available variables

Each tasks group is included in the main.yml file with a condition based on a variable like evolinux_hostname_include (mostly True by default). The variables can be set to False to disable a task group. Finer grained tasks disabling is done in each group of tasks.

Main variables are:

  • general_alert_email: email address to send various alert messages (default: root@localhost).
  • apt_alert_email: email address to send APT messages to (default: general_alert_email).
  • log2mail_alert_email: email address to send Log2mail messages to (default: general_alert_email).
  • postfix_alias_email: email address for messages sent to root (default: general_alert_email) ;
  • evolinux_apt_upgrade: upgrade packages (default: True)
  • evolinux_apt_hooks: install APT hooks (default: True)
  • evolinux_apt_remove_aptitude: uninstall aptitude (default: True)
  • evolinux_delete_nfs: delete NFS tools (default: True)
  • evolinux_additional_packages: optional additional packages to install (default: [])
  • evolinux_postfix_purge_exim: purge Exim packages (default: True) ;
  • evolinux_ssh_password_auth_addresses: list of addresses that can authenticate with a password (default: [])
  • evolinux_ssh_disable_root: disable SSH access for root (default: False)
  • evolinux_ssh_allow_current_user: don't lock yourself out (default: False)

The full list of variables (with default values) can be found in defaults/main.yml.