Commit Graph

17 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
Jesse Pretorius b976e44d88 Remove tests-repo-clone.sh
Now that run_tests.sh handles the tests repo clone, we can
remove the use of the older tests-repo-clone.sh script.

Change-Id: I7bb55444b732def3504f936b83d74d6e90536a32
2018-03-28 10:17:57 +01:00
OpenStack Proposal Bot 929afea1de Updated from OpenStack Ansible Tests
Change-Id: Ic6f1c0511e8bc44420887fcf470b6ad044bdd70d
2018-02-14 20:08:25 +00:00
Jesse Pretorius 5600cd7766 Initial OSA zuul v3 role jobs
This patch implements an initial set of jobs intended to match
the current job execution method. It does not intend to improve
how the jobs are executed - only to replicate what is currently
in openstack-infra/openstack-zuul-jobs and provide the platform
to iterate on.

Change-Id: I167f72fd1cc8449f2e5849dad8ff6cf746c9bb21
2017-10-17 18:04:28 +01:00
OpenStack Proposal Bot d18a208991 Updated from OpenStack Ansible Tests
Change-Id: I35de406f6588ce9759339ceff3080db6c2efbb78
2017-10-12 20:45:25 +00: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
OpenStack Proposal Bot 0117e2103a Updated from OpenStack Ansible Tests
Change-Id: I069747ddd310c57d9c815071f81367bc70338fc7
2017-06-22 15:20:24 +00:00
Jesse Pretorius dbd7913934 Use zuul-cloner for tests repo in OpenStack-CI
When executing the tests repo clone in OpenStack-CI,
use zuul-cloner instead of git to enable cross-repo
testing. This ensures that if a dependent patch from
the tests repo is noted using 'Depends-On: <change-id>'
in the commit message, that patch will be included.

Change-Id: I578ee9f21693b0f974853f8cc81f7189372020f7
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:54:44 +01: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 705b264df2 Fix remote logging template
Splitted functionality, one template for generating remote syslog
targets and another for streaming the user specifed log files in
syslog format. This avoids duplcate targets when the role is
invoked mutiple times against a host when installing services.

Change-Id: I53e2faf69c0446bea9738a66ee8585e8d795cf52
2017-03-13 16:17:31 -04:00
Logan V f57486e1a9 Fix log search dir conditional
Fix bug with search dir conditional introduced by
Iba17bed79e26e6e7eb2300d413058145ec680d87.

Change-Id: I291e3582e5cb01f4a9c394bc8e7d8289ca577f90
Closes-Bug: #1648490
2016-12-08 09:48:43 -06:00
Jesse Pretorius cb06bb2df7 Use centralised test scripts
This patch consumes the test scripts implemented by
https://review.openstack.org/375061 to ensure that
the tests and test preparation is consistent and
more maintainable.

Change-Id: Ida6e525e11fc286d37389b78f755915a2dc29043
2016-09-28 11:58:44 +01:00
Kevin Carter d11071f283 Update testing bits for consistency
Change-Id: I70b28988332a8d2073afbd46960582a5780ae48c
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-17 17:14:43 -04:00
Jimmy McCrory 6c1f43a4cc Allow overriding of default logrotate options
Two variables have been added, rsyslog_client_log_rotate_options
and rsyslog_client_log_rotate_scripts, to allow deployers to override
and set logrotate config options as they wish.

The os_aggregate_storage.j2 template has also been renamed to
logrotate.j2 to better fit its purpose.

Change-Id: If7538fd2409f3583f22209868f538e01796813c2
2016-07-05 20:38:39 -07:00
Jesse Pretorius 2c4cbc8380 Update tox config and add bashate E006, E040 exceptions
This patch updates the tox.ini the same bashate exceptions as are
currently in the OpenStack-Ansible playbook repo.

It also ensures that the linters and all lint targets work
appropriately and normalises the tox.ini configuration to use
uniform formatting.

The use of ansible.cfg is removed as there is no way of being
certain which paths can be used without reverting to an ugly
sed hack in the commands. This is why it is preferred to make
use of environment variables which make use of tox's default
substitutions instead. It's a more reliable way of achieving
the goal for the purpose of gating and testing.

The switch to using a git clone instead of ansible-galaxy to
download the plugins is due to the path spec not being able to
work in Ansible 2.x. [1]

[1] https://github.com/ansible/ansible/issues/13563

Change-Id: I8609aee114468087fe19328e30e60d26628027dc
2016-02-12 12:00:46 +00:00
Jean-Philippe Evrard 70596ebb14 Use sudo for role testing
There are 2 ways to realize the privilege escalation
needed for the gate jobs.

1) Editing the playbooks (and hope to not forget to
write the sudo/become lines for every role)
2) Editing the inventory and set the variable there.

I'm taking the second approach with the minimum set
of variables (become_method is sudo by default and
become_user is root by default).

Change-Id: Iab4a1deda78669fd2a5e3e18c5b86afdffde0cf8
2015-11-25 17:33:48 +01:00
Kevin Carter ed60bae35a
IRR for rsyslog_client
The change moves the role out from the main repo rsyslog_client
repository and into its own standalone repository.

Items within this change:
  * The role has been updated to ensure it runs standalone.
  * Tests added to the role within tox.
  * Functional tests added to the role that can either be run
    via the run_tests.sh script or using tox.
  * dev requirements have been updated for testing usecases.
  * Docs added to both the README.rst file as well as the docs
    folder.

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-11-03 02:27:54 -06:00