Fix Gather

Gather would reuse /tmp/out.yml - we have been seeing where the MD5
differs. This seems to be due to the controllers/computes using the
same /tmp/out.yml path. This patch will append the hostname, so it will
be unique.

Change-Id: I6e060287d02800a913e9baa269d72ea00e3f7913
This commit is contained in:
Joe 2018-06-06 07:05:22 -04:00
parent 50b3092fbb
commit 2b5205f098
10 changed files with 20 additions and 20 deletions

View File

@ -13,9 +13,9 @@
when: ceilometer_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: ceilometer_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: ceilometer_config.stat.exists

View File

@ -13,9 +13,9 @@
when: cinder_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: cinder_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: cinder_config.stat.exists

View File

@ -54,12 +54,12 @@
ignore_errors: true
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: hostvars[inventory_hostname]['containers'] is not defined
ignore_errors: true
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: hostvars[inventory_hostname]['containers'] is not defined
ignore_errors: true

View File

@ -8,7 +8,7 @@
shell: "python /tmp/openstack-config-parser.py glance /tmp/out.yml"
- name: Fetch output
fetch: "src=/tmp/out.yml dest=/tmp/out.yml flat=yes"
fetch: "src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes"
- name: Load configuration variables
include_vars: "/tmp/out.yml"
include_vars: /tmp/out-{{ inventory_hostname }}.yml

View File

@ -14,9 +14,9 @@
when: gnocchi_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: gnocchi_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: gnocchi_config.stat.exists

View File

@ -14,9 +14,9 @@
when: heat_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: heat_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: heat_config.stat.exists

View File

@ -14,11 +14,11 @@
when: keystone_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: keystone_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: keystone_config.stat.exists
- name: Determine if Keystone is deployed in eventlet

View File

@ -14,10 +14,10 @@
when: neutron_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: neutron_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: neutron_config.stat.exists

View File

@ -14,10 +14,10 @@
when: nova_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: nova_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: nova_config.stat.exists

View File

@ -15,11 +15,11 @@
when: undercloud_conf.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: undercloud_conf.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: undercloud_conf.stat.exists
- name: Get max_connections on the database