Fix non-idempotent heka bootstrap

This bootstrap was non-idempotent. This patch follows the style
first implemented with nova to make this idempotent.

TrivialFix

Change-Id: Id04e59c5274a7d8a5bffd3ce018f3bbb84839d75
This commit is contained in:
SamYaple 2016-02-23 22:14:32 +00:00
parent 33fd50e603
commit 52c4667b10

View File

@ -4,6 +4,7 @@
action: "create_volume"
common_options: "{{ docker_common_options }}"
name: "kolla_logs"
register: kolla_logs_volume
- name: Starting heka bootstrap container
kolla_docker:
@ -21,3 +22,4 @@
volumes:
- "{{ node_config_directory }}/heka/:{{ container_config_directory }}/:ro"
- "kolla_logs:/var/log/kolla/"
when: kolla_logs_volume.changed