Browse files

set right config path for containers

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

Change-Id: I1e5c4935b72fcabd5256d0bf8014cae3beb314a4
  • Loading branch information...
venkataanil committed Aug 31, 2018
1 parent 91dad47 commit 37548ba704097cd84c93597f259d76ec09f91279
@@ -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,
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
@@ -12,7 +12,7 @@
- name: Set var for container deployment
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

0 comments on commit 37548ba

Please sign in to comment.