From 23b3ef3704399599b9cb7793849026ee4a864b3a Mon Sep 17 00:00:00 2001 From: akrzos Date: Wed, 21 Sep 2016 21:14:54 -0400 Subject: [PATCH] Get Gnocchi Config Metadata Change-Id: I2331056e241487e1a3e2a80551ee5168606e1c21 --- ansible/gather/roles/gnocchi/tasks/main.yml | 14 ++++++++++++++ ansible/gather/site.yml | 1 + 2 files changed, 15 insertions(+) create mode 100644 ansible/gather/roles/gnocchi/tasks/main.yml diff --git a/ansible/gather/roles/gnocchi/tasks/main.yml b/ansible/gather/roles/gnocchi/tasks/main.yml new file mode 100644 index 000000000..31f430968 --- /dev/null +++ b/ansible/gather/roles/gnocchi/tasks/main.yml @@ -0,0 +1,14 @@ +--- +# +# Tasks to get gnocchi config data +# + +- name: Parse Gnocchi config + become: true + shell: python /tmp/openstack-config-parser.py gnocchi /etc/gnocchi/gnocchi.conf /tmp/out.yml + +- name: Fetch output + fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes + +- name: Load configuration variables + include_vars: /tmp/out.yml diff --git a/ansible/gather/site.yml b/ansible/gather/site.yml index cbddd48d8..4fb9bd80c 100644 --- a/ansible/gather/site.yml +++ b/ansible/gather/site.yml @@ -14,6 +14,7 @@ - neutron - keystone - ceilometer + - gnocchi - cinder - heat - mysql