Stop hardcoding host's config volume path
Get the path from the CONFIG_VOLUME_PREFIX environment variable. This is useful for debugging and generate configuration files to a different directory. Change-Id: Ib85e3898804312ebb6677a5fa189fbfc357ce27c
This commit is contained in:
parent
b32d1c145b
commit
0c62b6cd8d
|
@ -256,7 +256,7 @@ def mp_puppet_config((config_volume, puppet_tags, manifest, config_image, volume
|
|||
'--volume', '%s:/etc/config.pp:ro' % tmp_man.name,
|
||||
'--volume', '/etc/puppet/:/tmp/puppet-etc/:ro',
|
||||
'--volume', '/usr/share/openstack-puppet/modules/:/usr/share/openstack-puppet/modules/:ro',
|
||||
'--volume', '/var/lib/config-data/:/var/lib/config-data/:rw',
|
||||
'--volume', '%s:/var/lib/config-data/:rw' % os.environ.get('CONFIG_VOLUME_PREFIX', '/var/lib/config-data'),
|
||||
'--volume', 'tripleo_logs:/var/log/tripleo/',
|
||||
# Syslog socket for puppet logs
|
||||
'--volume', '/dev/log:/dev/log',
|
||||
|
|
Loading…
Reference in New Issue