diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-05-30 13:52:28 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-05-30 13:52:28 +0000 |
commit | 5f374b863d66256d222c638a927c8455a9d10fc8 (patch) | |
tree | 68c654312d03d29352c0a8c2420e160bed40ebbd /docker/services/mistral-api.yaml | |
parent | 847a1fe79333f3eb18672a88a5212cbd395b94bf (diff) | |
parent | 51da97d04a2cbc81ad4b56a8a91c6dd43d5afe81 (diff) |
Merge "docker bootstrap service commands"
Diffstat (limited to 'docker/services/mistral-api.yaml')
-rw-r--r-- | docker/services/mistral-api.yaml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docker/services/mistral-api.yaml b/docker/services/mistral-api.yaml index 3b256fdd..5586d41b 100644 --- a/docker/services/mistral-api.yaml +++ b/docker/services/mistral-api.yaml @@ -100,19 +100,21 @@ outputs: net: host privileged: false detach: false + user: root volumes: list_concat: - {get_attr: [ContainersCommon, volumes]} - - /var/lib/config-data/mistral/etc/:/etc/:ro - /var/log/containers/mistral:/var/log/mistral - command: ['mistral-db-manage', '--config-file', '/etc/mistral/mistral.conf', 'upgrade', 'head'] + command: "/usr/bin/bootstrap_host_exec mistral_api su mistral -s /bin/bash -c 'mistral-db-manage --config-file /etc/mistral/mistral.conf upgrade head'" mistral_db_populate: start_order: 2 image: *mistral_image net: host privileged: false detach: false + user: root volumes: list_concat: - {get_attr: [ContainersCommon, volumes]} @@ -121,7 +123,7 @@ outputs: - /var/log/containers/mistral:/var/log/mistral # NOTE: dprince this requires that we install openstack-tripleo-common into # the Mistral API image so that we get tripleo* actions - command: ['mistral-db-manage', '--config-file', '/etc/mistral/mistral.conf', 'populate'] + command: "/usr/bin/bootstrap_host_exec mistral_api su mistral -s /bin/bash -c 'mistral-db-manage --config-file /etc/mistral/mistral.conf populate'" step_4: mistral_api: start_order: 15 |