tripleo-common/scripts
Jesse Pretorius (odyssey4me) 0dc6284324 Implement Ansible fact cache for Mistral executor
Most of the playbooks executed by Mistral gather facts which, by default,
are stored in memory until the conclusion of the playbook execution. This
means that for every new playbook run the facts for each host are gathered
again. Fact gathering can take a long time, especially when the target host
has a lot of devices, which is often the case for compute hosts (many
network devices and many storage devices) and for controller hosts (many
network devices).

To optimise fact gathering, we set the default behaviour for Mistral's
Ansible execution to store gathered facts using the jsonfile format in a
temporary location, and we tell it to use smart gathering so that it will
only gather new facts when a new playbook executes.

The validations are run using the 'validations' user, it cannot share the
same fact cache because the /var/tmp/ansible_fact_cache folder will be owned
by the 'mistral' user, and is therefore not writable by the 'validations'
user. We therefore set the validations to use a different path.

This should cut down the deployment time a bit, which saves a little time in
CI and saves a lot of time in production environments.

Related: rhbz#1749406
Change-Id: Ie7adf41cef0fafde646f840b2bf3e01ba42a17d5
(cherry picked from commit bbc0d767bb)
2019-10-04 09:25:37 +00:00
..
README-tripleo.sh Remove tripleo.sh (now in tripleo-ci repo) 2016-03-15 08:01:22 -04:00
bootstrap_host_exec Lowercase any hostname comparisons in bootstrap_* scripts 2018-05-29 08:39:16 +02:00
bootstrap_host_only_eval Lowercase any hostname comparisons in bootstrap_* scripts 2018-05-29 08:39:16 +02:00
bootstrap_host_only_exec Lowercase any hostname comparisons in bootstrap_* scripts 2018-05-29 08:39:16 +02:00
container-update.py [Queens only] Fix syntax error. 2018-10-30 13:20:52 +01:00
create_freeipa_enroll_envfile.py Add FreeIPA enrollment environment generator 2016-12-13 14:36:53 +00:00
pull-puppet-modules A script that pulls the latest puppet source 2017-01-09 21:03:13 -05:00
run-validation Implement Ansible fact cache for Mistral executor 2019-10-04 09:25:37 +00:00
tripleo-build-images Fix build-image script output 2016-12-06 16:22:01 +01:00
tripleo-config-download Config download support for all deployments 2017-10-17 13:59:53 -04:00
upgrade-non-controller.sh Include the stack name when generating the tripleo-ansible-inventory 2018-08-03 11:38:41 +02:00
upload-puppet-modules Change default deploy artifacts container name 2016-09-05 21:02:27 +01:00
upload-swift-artifacts Update the documentation link for doc migration 2017-07-25 15:00:27 +08:00