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:
parent
91dad47425
commit
37548ba704
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user