Bind mount mistral state for external deployments

External deployments, like openshift-ansible, rely on
contents of /var/lib/mistral and /usr/share/ansible/
host paths. Bind mount those to allow containerized
mistral access data required for external deployments.
Allow only executor to write into /var/lib/mistral.
The other non-API components are only allowed to read.

Change-Id: I4299442de0efaa66253ecc45acb2d0a8c082f018
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
Bogdan Dobrelya 2018-07-17 10:58:32 +03:00
parent a9fda38818
commit 10ebdc81ab
3 changed files with 5 additions and 0 deletions

View File

@ -110,6 +110,8 @@ outputs:
- /var/lib/kolla/config_files/mistral_engine.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/puppet-generated/mistral/:/var/lib/kolla/config_files/src:ro
- /var/log/containers/mistral:/var/log/mistral
- /var/lib/mistral:/var/lib/mistral:ro
- /usr/share/ansible/:/usr/share/ansible/:ro
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks:

View File

@ -110,6 +110,8 @@ outputs:
- /var/lib/kolla/config_files/mistral_event_engine.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/puppet-generated/mistral/:/var/lib/kolla/config_files/src:ro
- /var/log/containers/mistral:/var/log/mistral
- /var/lib/mistral:/var/lib/mistral:ro
- /usr/share/ansible/:/usr/share/ansible/:ro
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks:

View File

@ -125,6 +125,7 @@ outputs:
- /var/run/docker.sock:/var/run/docker.sock:rw
- /var/log/containers/mistral:/var/log/mistral
- /var/lib/mistral:/var/lib/mistral
- /usr/share/ansible/:/usr/share/ansible/:ro
- {get_param: MistralExecutorVolumes}
- {get_param: MistralExecutorExtraVolumes}
environment: