Add Glance metadata parsing
this could not quite follow the existing pattern due to the fact that glance has multiple independent config files. So this uses a fileglob loop to find all the configuration files in the /etc/glance directory and load each of them in turn. Change-Id: I259bef0d022500b3865926fc36f289c6a17ec5db
This commit is contained in:
parent
7642550e5c
commit
fc54e31020
20
ansible/gather/roles/glance/tasks/main.yml
Normal file
20
ansible/gather/roles/glance/tasks/main.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
#
|
||||||
|
# Tasks to get Glance facts
|
||||||
|
#
|
||||||
|
|
||||||
|
- name: Parse Glance config
|
||||||
|
become: true
|
||||||
|
shell: python /tmp/openstack-config-parser.py glance {{ item }} /tmp/{{ item | basename }}.yml
|
||||||
|
with_fileglob:
|
||||||
|
- /etc/glance/*.conf
|
||||||
|
|
||||||
|
- name: Fetch output
|
||||||
|
fetch: src=/tmp/{{ item | basename }}.yml dest=/tmp/{{ item | basename }}.yml flat=yes
|
||||||
|
with_fileglob:
|
||||||
|
- /etc/glance/*.conf
|
||||||
|
|
||||||
|
- name: Load configuration variables
|
||||||
|
include_vars: /tmp/{{ item | basename }}.yml
|
||||||
|
with_fileglob:
|
||||||
|
- /etc/glance/*.conf
|
@ -19,6 +19,7 @@
|
|||||||
- heat
|
- heat
|
||||||
- mysql
|
- mysql
|
||||||
- rabbitmq
|
- rabbitmq
|
||||||
|
- glance
|
||||||
|
|
||||||
- hosts: undercloud
|
- hosts: undercloud
|
||||||
remote_user: "{{ local_remote_user }}"
|
remote_user: "{{ local_remote_user }}"
|
||||||
|
@ -125,7 +125,7 @@ time deployCloud
|
|||||||
time deployBrowbeat
|
time deployBrowbeat
|
||||||
|
|
||||||
pushd $WORKSPACE/browbeat
|
pushd $WORKSPACE/browbeat
|
||||||
if [[ $($DIFF_CMD | grep -i metadata) != "" ]]
|
if [[ $($DIFF_CMD | grep -i gather) != "" ]]
|
||||||
then
|
then
|
||||||
time runGather
|
time runGather
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user