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:
parent
e29cdbf21c
commit
5550267111
@ -2,6 +2,26 @@
|
|||||||
#
|
#
|
||||||
# Tasks to set undercloud facts
|
# 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
|
- name: Get max_connections on the database
|
||||||
shell: mysql -e "show variables like 'max_connections';" | grep max_connections | awk '{print $2}'
|
shell: mysql -e "show variables like 'max_connections';" | grep max_connections | awk '{print $2}'
|
||||||
register: max_conn
|
register: max_conn
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
remote_user: "{{ local_remote_user }}"
|
remote_user: "{{ local_remote_user }}"
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
|
- common
|
||||||
- undercloud
|
- undercloud
|
||||||
|
|
||||||
- hosts: undercloud
|
- hosts: undercloud
|
||||||
|
Loading…
Reference in New Issue
Block a user