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
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
This patch differentiates rsyslogd configurations based on operating system
by defining respective system logfile location and user/group.
Change-Id: If5134278f7aa5e726325be38bb0bf8a560b668e5
Closes-Bug: #1807268
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
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
Logs stopped streaming after log rotation as rsyslogd rotate is not
working. Updated postrotate script to restart rsyslog instead of
rotate.
Change-Id: Ie74b5bfa9a33553c4e3558e78a634d4d7463f16e
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
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
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
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>
This is an implementation of a pattern for multi-distro support
This allows for support of distros other than Ubuntu
Change-Id: Ide94831464a74827d5c46b38557e483aaf4180d0