Adding mistral collection
Collecting mistral config data Change-Id: Ieb9d04c36ac4b5ad788288ff47970f807593981d
This commit is contained in:
parent
91dad47425
commit
4d8b78f9e2
22
ansible/gather/roles/mistral/tasks/main.yml
Normal file
22
ansible/gather/roles/mistral/tasks/main.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
#
|
||||||
|
# Tasks to get mistral facts
|
||||||
|
#
|
||||||
|
|
||||||
|
- name: Check that mistral is installed
|
||||||
|
become: true
|
||||||
|
stat: path=/etc/mistral/mistral.conf
|
||||||
|
register: mistral_config
|
||||||
|
|
||||||
|
- name: Parse Mistral config
|
||||||
|
become: true
|
||||||
|
command: python /tmp/openstack-config-parser.py mistral /tmp/out.yml
|
||||||
|
when: mistral_config.stat.exists
|
||||||
|
|
||||||
|
- name: Fetch output
|
||||||
|
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
|
||||||
|
when: mistral_config.stat.exists
|
||||||
|
|
||||||
|
- name: Load configuration variables
|
||||||
|
include_vars: /tmp/out-{{ inventory_hostname }}.yml
|
||||||
|
when: mistral_config.stat.exists
|
@ -28,6 +28,7 @@
|
|||||||
roles:
|
roles:
|
||||||
- common
|
- common
|
||||||
- undercloud
|
- undercloud
|
||||||
|
- mistral
|
||||||
|
|
||||||
- hosts: browbeat
|
- hosts: browbeat
|
||||||
remote_user: "{{ browbeat_user }}"
|
remote_user: "{{ browbeat_user }}"
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
roles:
|
roles:
|
||||||
- browbeat-metadata/common
|
- browbeat-metadata/common
|
||||||
- browbeat-metadata/undercloud
|
- browbeat-metadata/undercloud
|
||||||
|
- browbeat-metadata/mistral
|
||||||
|
|
||||||
- name: Dump metadata to files
|
- name: Dump metadata to files
|
||||||
hosts: undercloud
|
hosts: undercloud
|
||||||
|
Loading…
x
Reference in New Issue
Block a user