Commit Graph

16 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov dcf6aed584 Deprecate rsyslog_client role
Depends-On: https://review.opendev.org/c/openstack/project-config/+/863079
Change-Id: I47bcd43247e0d589932b63cec782567d33d35f28
2022-10-31 16:56:19 +01:00
Jonathan Rosser 8a80f97857 Add support for debian bullseye
Change-Id: I8fe2fc62e3be7dc586579c019d86db2a19bbfd0c
2021-06-03 08:29:14 +00:00
Jonathan Rosser 921ffab034 Remove references to unsupported operating systems
All references to Gentoo, SUSE, Debian stretch and Centos-7  are removed.
Conditional tasks, ternary operators and variables are simplified where possible
OS specific variables files are generalised where possible

Change-Id: I5e402a943fd1d923db99f04c68c5e9510d3acc85
2021-03-16 08:52:44 +00:00
Jonathan Rosser 271be6c8d9 Remove examples for variables which no longer exist
See I113c9803495f2a935b99f272c387a4304a149cbf

Change-Id: Ife37fe62aea5ce131c106a2f1708a727341bc2f4
2021-01-20 10:03:07 +00:00
Jonathan Rosser 6defc982de Update role for Ubuntu Focal and Centos-8
Change-Id: Ia0ae332f89168851cc2c68dc0ad9696ba3bcae8c
2021-01-14 09:09:51 +00:00
Dmitriy Rabotyagov 75627fbec7 Add handled logs to the list
Debian 10 has a bit more handled files now, so we should create
a separate vars file to extend rsyslog_client_already_handled_files list

Change-Id: I3a2ce4aff374ec50fdc7b7d0373cac68b2706d43
2020-04-28 19:14:06 +03:00
James Denton 70be33495f Templatize rsyslog configuration files
This patch differentiates rsyslogd configurations based on operating system
by defining respective system logfile location and user/group.

Change-Id: If5134278f7aa5e726325be38bb0bf8a560b668e5
Closes-Bug: #1807268
2019-02-14 14:24:38 +00:00
Markos Chandras d00743663b SUSE: Add support for openSUSE Leap 15
Change-Id: Id5498982a0e299e7b99a7ce17a10cb67be4f4ed7
2018-09-13 15:25:58 +01:00
Jean-Philippe Evrard 7b2cd66e97 Test postrotate works
We should:
- Not check what we do not set (kern.log and auth.log are already
defined in rsyslog file, which we do not template). These two
files would trigger an issue if both are in the same logrotate
configuration.
- Check that the rotation works, by forcing a rotation, and seeing
that the new files are empty.

Change-Id: I08357260e45919d9e71586cac6b9ce413adffc22
Closes-Bug: 1699875
Closes-Bug: 1709291
2017-08-23 20:19:45 +00:00
Markos Chandras 5a150eee9b Add SUSE support
Add support for SUSE based distributions. We also update the bindep.txt,
run_tests.sh and Vagrantfile files from the openstack-ansible-tests
repository.

Change-Id: I9dd0290d9eb7be77446a6bd5c048ceb3371fa536
2017-04-05 18:24:52 +01:00
Ravi Kumar Boyapati e17c2c0f2d Update postrotate script
Logs stopped streaming after log rotation as rsyslogd rotate is not
working. Updated postrotate script to restart rsyslog instead of
rotate.

Change-Id: Ie74b5bfa9a33553c4e3558e78a634d4d7463f16e
2017-03-25 16:41:42 -04:00
Ravi Kumar Boyapati c63290a0a4 Logrotate not restarting rsyslog
logrotate is not sending HUP signal to rsyslog because of invalid
command in postrotate/endscript block. Fixed the command to reload
the rsyslog after the logs are rotated.

Change-Id: Ia1fa205e6f20c212841109c914a8c7e2d379a48b
2017-03-01 09:20:02 -05:00
Travis Truman ba6de3ea83 Rename package lists (and related vars) appropriately
In order to make it easier to differentiate between the lists of
python packages, distribution packages, downloaded packages,
package pins and other similar variables the variable names are
being changed to ensure that they have a more explicit suffix
that defines the purpose and makes the naming more consistent.

This is to facilitate a lookup plugin which will be able to look
up all the package lists and present them as a consolidated piece
of data which may be used for artifact preparation.

Change-Id: If3816d9c79ecd1a61a3a53fed95828bff6d91181
2016-08-26 13:11:48 -04:00
Jesse Pretorius c0cff7b366 Remove rsyslog_client_repos var and fix apt cache updating
The ability to implement a custom apt/yum repository for rsyslog_client
has been removed as it is unused. Deployers may opt to do this in
a number of other methods (including customising the base container
cache) which do not require us to maintain this code.

Having this ability there resulted in the apt cache updating every time
the role executed even though there was no repo being added.

The cache_timeout variable is moved to the role defaults to allow it
to be overridden more easily and to be exposed in the role docs.

Change-Id: I113c9803495f2a935b99f272c387a4304a149cbf
2016-08-22 15:15:20 +00:00
Kevin Carter 93ff2c41bb
Add CentOS7 support to rsyslog client
This change adds a new variable and task file for supporting
CentOS7 based deployments.

Change-Id: I9d50c557ff6359c8db3c065edc68130de0aefdc9
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-06-01 13:45:14 -05:00
Travis Truman 51d8a9e2df Multi-distro pattern for rsyslog-client role
This is an implementation of a pattern for multi-distro support

This allows for support of distros other than Ubuntu

Change-Id: Ide94831464a74827d5c46b38557e483aaf4180d0
2016-04-27 11:22:12 -04:00