From fbf712b68f90d69300dbb5b2df844ea1a6c6ed89 Mon Sep 17 00:00:00 2001
From: Bertrand Lallau <bertrand.lallau@thalesgroup.com>
Date: Wed, 15 Mar 2017 17:45:55 +0100
Subject: [PATCH] Fix logrotate issue on Octavia and Watcher service

Services config files are missing in cron command.
Cron Jinja template has been adapted in order to take it into account.

Change-Id: I5aef67b774ddaf83afdfe03d099b91e68a11ae1d
Closes-Bug: #1673163
Closes-Bug: #1673193
---
 ansible/roles/common/templates/cron.json.j2 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ansible/roles/common/templates/cron.json.j2 b/ansible/roles/common/templates/cron.json.j2
index 61517e54da..2bb3a5f78b 100644
--- a/ansible/roles/common/templates/cron.json.j2
+++ b/ansible/roles/common/templates/cron.json.j2
@@ -25,6 +25,7 @@
     ( 'murano', enable_murano ),
     ( 'neutron', enable_neutron ),
     ( 'nova', enable_nova ),
+    ( 'octavia', enable_octavia ),
     ( 'panko', enable_panko ),
     ( 'rabbitmq', enable_rabbitmq ),
     ( 'sahara', enable_sahara ),
@@ -32,7 +33,8 @@
     ( 'senlin', enable_senlin ),
     ( 'solum', enable_solum ),
     ( 'swift', enable_swift ),
-    ( 'tacker', enable_tacker )
+    ( 'tacker', enable_tacker ),
+    ( 'watcher', enable_watcher )
 ] %}
 {
     "command": "{{ cron_cmd }}",