Collect undercloud.conf for metadata

The undercloud.conf has some tunables that are important to know
so I figured I would add it to the metadata collection

Change-Id: I1d31b5a30c265807e9f37a78caa24e569687ef5b
This commit is contained in:
jkilpatr 2017-03-03 14:39:06 -05:00
parent e29cdbf21c
commit 5550267111
2 changed files with 21 additions and 0 deletions

View File

@ -2,6 +2,26 @@
#
# Tasks to set undercloud facts
#
- name: Check that the undercloud.conf exists
become: true
stat: path=/home/stack/undercloud.conf
register: undercloud_conf
- name: Undercloud.conf
become: true
shell: python /tmp/openstack-config-parser.py undercloud /home/stack/undercloud.conf /tmp/out.yml
when: undercloud_conf.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
when: undercloud_conf.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
when: undercloud_conf.stat.exists
- name: Get max_connections on the database
shell: mysql -e "show variables like 'max_connections';" | grep max_connections | awk '{print $2}'
register: max_conn

View File

@ -25,6 +25,7 @@
remote_user: "{{ local_remote_user }}"
become: true
roles:
- common
- undercloud
- hosts: undercloud