From 9a910d6b1e2fd770ad84a9f8366a0b4f200f09f4 Mon Sep 17 00:00:00 2001
From: Mauricio Lima <mauriciolimab@gmail.com>
Date: Tue, 29 Mar 2016 15:23:37 -0400
Subject: [PATCH] Starting heka bootstrap container failed in deployment

Change-Id: I7efa3f5df3a5743d264864070967cf995900b147
Closes-Bug: #1561111
---
 ansible/roles/common/templates/heka.json.j2 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ansible/roles/common/templates/heka.json.j2 b/ansible/roles/common/templates/heka.json.j2
index 94bd31d1e1..a23162d019 100644
--- a/ansible/roles/common/templates/heka.json.j2
+++ b/ansible/roles/common/templates/heka.json.j2
@@ -19,7 +19,8 @@
             "source": "{{ container_config_directory }}/heka-haproxy.toml",
             "dest": "/etc/heka/heka-haproxy.toml",
             "owner": "heka",
-            "perm": "0600"
+            "perm": "0600",
+            "optional": {{ (not enable_haproxy | bool) | string | lower }}
         },
         {
             "source": "{{ container_config_directory }}/heka-rabbitmq.toml",
-- 
GitLab