8c668d51aa
Currently our gather playbook assumes all configuration files will be in /etc. This assumption isn't true with container deployments. Currently the configuration files are located in /var/lib/config-data/<service>/etc/<service>/. The Gather script needs to support both container and non-container deployments. This patchset updates the config parser python script to check if a service is in the running containers list and then determine it's appropriate path, grab all of multiple config files in that path, then parse and drop them off for ansible to use. This method automagically supports all possible mixes of containerized uncontainerized services and will always grab the correct config even if that changes build to build or run to run. It's also easily extensible for many possible config locations or different container types by adding another condition or additional search paths. Change-Id: I95a3059c7fc263733ac64aa894c6dbf11e2a909f Closes-bug: #1701264
36 lines
543 B
YAML
36 lines
543 B
YAML
---
|
|
- hosts: compute
|
|
remote_user: "{{ host_remote_user }}"
|
|
become: true
|
|
roles:
|
|
- common
|
|
- compute
|
|
|
|
- hosts: controller
|
|
remote_user: "{{ host_remote_user }}"
|
|
become: true
|
|
roles:
|
|
- common
|
|
- nova
|
|
- neutron
|
|
- keystone
|
|
- ceilometer
|
|
- gnocchi
|
|
- cinder
|
|
- heat
|
|
- mysql
|
|
- rabbitmq
|
|
- glance
|
|
|
|
- hosts: undercloud
|
|
remote_user: "{{ local_remote_user }}"
|
|
become: true
|
|
roles:
|
|
- common
|
|
- undercloud
|
|
|
|
- hosts: browbeat
|
|
remote_user: "{{ browbeat_user }}"
|
|
roles:
|
|
- dump-facts
|