Browse Source

Use the Mistral directory for storing the Ansible fact cache.

This aligns with how TripleO currently stores all Ansible data
in /var/lib/mistral/. Our documentation already recommends
running setfacl on that directory if an end-user wants to
access the files there.

Change-Id: I29d0a353cd0a0d28f36460a8e81003378884a5bd
Closes-Bug: #1850916
Resolves: rhbz#1772959
Signed-off-by: Luke Short <ekultails@gmail.com>
(cherry picked from commit d504caff6c)
changes/09/694609/1
Luke Short 3 months ago
parent
commit
2534143091
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tripleo_common/actions/ansible.py

+ 1
- 1
tripleo_common/actions/ansible.py View File

@@ -52,7 +52,7 @@ def write_default_ansible_cfg(work_dir,
config.set('defaults', 'gathering', 'smart')
config.set('defaults', 'fact_caching', 'jsonfile')
config.set('defaults', 'fact_caching_connection',
'/var/tmp/ansible_fact_cache')
'/var/lib/mistral/ansible_fact_cache')

# Expire facts in the fact cache after 7200s (2h)
config.set('defaults', 'fact_caching_timeout', '7200')

Loading…
Cancel
Save