set right config path for containers

Containers use configuration files from the path
/var/lib/config-data/puppet-generated/<service/
and not from /var/lib/config-data/<service>/

Change-Id: I1e5c4935b72fcabd5256d0bf8014cae3beb314a4
This commit is contained in:
venkata anil 2018-08-31 16:57:48 +05:30
parent 91dad47425
commit 37548ba704
2 changed files with 3 additions and 3 deletions

View File

@ -125,8 +125,8 @@ def main():
if 'undercloud' in service_name:
cfg_path = "/home/stack"
elif in_container and service_name not in pattern_exceptions:
cfg_path = "/var/lib/config-data/{}/etc/{}".format(service_name,
service_name)
cfg_path = "/var/lib/config-data/puppet-generated/{}/etc/{}".format(
service_name, service_name)
# Glance has all configs in a folder named glance_api, ps shows no
# processes outside of the container, so I assume those are the right
# configs, even though the container is also named glance-api

View File

@ -12,7 +12,7 @@
- name: Set var for container deployment
set_fact:
containers: True
config_path: /var/lib/config-data/
config_path: /var/lib/config-data/puppet-generated/
when: docker_ps.stdout|int > 1
- name: Set fact for non-container deployment