Nolan Brubaker 325076bef6 Allow graceful exiting with SIGINT and SIGTERM
The test_loop function was only gracefully interrupted with a keyboard
interrupt before. This is fine for interactive testing, but in an
automated scenario the script may be running in the background and need
to receive a signal from some other process, such as Ansible.

This patch adds a handler for SIGINT and SIGTERM that will allow the
current iteration of the loop to finish, then exit the program cleanly
by putting the test_loop function into a class. The test_loop function
is not refactored other than to add the `stop_now` flag, though the
internal variables may be amenable to later refactoring to use the
class.

Change-Id: I0667d2c7093e2821afdfcea987cec6b58515885f
2017-05-22 11:59:23 -04:00
2017-05-09 15:40:13 -05:00
2016-11-07 08:19:06 -06:00
2016-06-14 15:32:40 +00:00
2016-05-27 11:57:18 +00:00
2016-11-02 12:16:10 +11:00
2016-06-14 15:32:40 +00:00
2016-11-25 16:29:05 +01:00
2016-09-20 12:09:10 +05:30
2017-03-02 11:51:26 +00:00

Team and repository tags

image

OpenStack-Ansible Operator Tooling

This repository is a collecting point for various scripts and tools which OpenStack-Ansible Developers and Operators have found to be useful and want to share and collaboratively improve.

The contents of this repository are not strictly quality managed and are only tested by hand by the contributors and consumers. Anyone using the tooling is advised to very clearly understand what it is doing before using it on a production environment.

Galaxy roles

OpenStack Ansible backup

This role will perform backups for OpenStack-Ansible deployments and it needs to run on the deploy node. It will backup data on container and then synchronize backup files to the deploy node.

Description
Operations-related content for OpenStack-Ansible
Readme 15 MiB
Languages
Jinja 82.1%
Shell 12.1%
Python 4.7%
PHP 1.1%