From 52c4667b10e743f6d6e08a47103d216d6c726837 Mon Sep 17 00:00:00 2001 From: SamYaple Date: Tue, 23 Feb 2016 22:14:32 +0000 Subject: [PATCH] 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 --- ansible/roles/common/tasks/bootstrap.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/common/tasks/bootstrap.yml b/ansible/roles/common/tasks/bootstrap.yml index 94bd65321c..f93689513e 100644 --- a/ansible/roles/common/tasks/bootstrap.yml +++ b/ansible/roles/common/tasks/bootstrap.yml @@ -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