diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-07-13 04:08:40 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-07-13 04:08:40 +0000 |
commit | b48487b61b3b352c98cf9b1aec357d8a7b4eae28 (patch) | |
tree | 05bc292026ae21ec6bd298104a1d6d972d50fe06 /docker/services/nova-api.yaml | |
parent | 7d07abf68281dad3edf5e23b66f0ed62f2f353d9 (diff) | |
parent | ea4188cb4a3ce8d5febe9121374e15646b8c0cb4 (diff) |
Merge "Add support for running crontabs in containers"
Diffstat (limited to 'docker/services/nova-api.yaml')
-rw-r--r-- | docker/services/nova-api.yaml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/docker/services/nova-api.yaml b/docker/services/nova-api.yaml index 93935cad..9282c934 100644 --- a/docker/services/nova-api.yaml +++ b/docker/services/nova-api.yaml @@ -158,7 +158,7 @@ outputs: user: nova privileged: true restart: always - volumes: + volumes: &nova_api_volumes list_concat: - {get_attr: [ContainersCommon, volumes]} - @@ -167,6 +167,16 @@ outputs: - /var/log/containers/nova:/var/log/nova environment: - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS + nova_api_cron: + image: *nova_api_image + net: host + user: root + privileged: true + restart: always + volumes: *nova_api_volumes + environment: + - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS + command: "/usr/sbin/crond -n" step_5: nova_api_discover_hosts: start_order: 1 |