system-config/playbooks/roles/cloud-launcher-cron/README.rst
Ian Wienand 82c6dec4fa Disable cloud launcher cron job during CI
This takes a similar approach to the extant ansible_cron_install_cron
variable to disable the cron job for the cloud launcher when running
under CI.

If you happen to have your CI jobs when the cron job decides to fire,
you end up with a harmless but confusing failed run of the cloud
launcher (that has tried to contact real clouds) in the ARA results.

Use the "disbaled" flag to ensure the cron job doesn't run.  Using
"disabled" means we can still check that the job was installed via
testinfra however.

Convert ansible_cron_install_cron to a similar method using disable,
document the variable in the README and add a test for the run_all.sh
script in crontab too.

Change-Id: If4911a5fa4116130c39b5a9717d610867ada7eb1
2019-07-16 15:01:55 +10:00

34 lines
916 B
ReStructuredText

Setup periodic runs of ``run_cloud_launcher.sh``, which runs the cloud setup
playbook against our clouds.
Note that this runs in an independent cron beacuse we don't need to run it
as frequently as our normal ansible runs and this ansible process needs
access to the all-clouds.yaml file which we don't run the normal ansible runs
with.
**Role Variables**
.. zuul:rolevar:: cloud_launcher_cron_interval
.. zuul:rolevar:: minute
:default: 0
.. zuul:rolevar:: hour
:default: */1
.. zuul:rolevar:: day
:default: *
.. zuul:rolevar:: month
:default: *
.. zuul:rolevar:: weekday
:default: *
.. zuul:rolevar:: cloud_launcher_disable_job
:default: false
Prevent installation of cron job. This is only useful for CI
jobs testing bridge.o.o so that the test host does not randomly
run the script during CI tests that fall during the interval.