diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-09-06 18:06:50 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-09-06 18:06:50 +0000 |
commit | d3098f8c48e44be402986f4312079b17f1a133a0 (patch) | |
tree | 1d43b96c81391c77c5f18b5e0851015eb42d4f06 | |
parent | f5a92ae9cb1cfedb946d4bec0a330c97d907ed7f (diff) | |
parent | f9df42b4cfdc13aa96b3061d58c8612ef4539f44 (diff) |
Merge "Mount folders and log file" into stable/pike
-rw-r--r-- | docker/services/opendaylight-api.yaml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/docker/services/opendaylight-api.yaml b/docker/services/opendaylight-api.yaml index 6a62f65e..2a6fcfe8 100644 --- a/docker/services/opendaylight-api.yaml +++ b/docker/services/opendaylight-api.yaml @@ -97,10 +97,21 @@ outputs: - - /var/lib/kolla/config_files/opendaylight_api.json:/var/lib/kolla/config_files/config.json:ro - /var/lib/config-data/puppet-generated/opendaylight/:/var/lib/kolla/config_files/src:ro + - /var/log/containers/opendaylight:/opt/opendaylight/data/log + - /var/lib/opendaylight/journal:/opt/opendaylight/journal + - /var/lib/opendaylight/snapshots:/opt/opendaylight/snapshots environment: - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - + host_prep_tasks: + - name: create persistent directories + file: + path: "{{ item }}" + state: directory + with_items: + - /var/log/containers/opendaylight + - /var/lib/opendaylight/snapshots + - /var/lib/opendaylight/journal upgrade_tasks: - name: Stop and disable opendaylight_api service tags: step2 - service: name=opendaylight state=stopped enabled=no + service: name=opendaylight state=stopped enabled=no
\ No newline at end of file |