From 6f89566e2ae2d07b590535ff0230f9d3451aee08 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Wed, 10 May 2017 19:18:03 -0400 Subject: [PATCH] Add LSYNCD_OPTIONS for CentOS The lsyncd daemon on CentOS can't find the location of its configuration file because the LSYNCD_OPTIONS variable is missing in the defaults file. Closes-bug: 1689965 Change-Id: I1dc24570f0d724cfe7b3338e04ad8cf50ed8b558 (cherry picked from commit c43efe58fc0d37f303926703cbc2a08601a3c82c) --- templates/lsyncd.defaults.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/lsyncd.defaults.j2 b/templates/lsyncd.defaults.j2 index 91be035..fdbfbbd 100644 --- a/templates/lsyncd.defaults.j2 +++ b/templates/lsyncd.defaults.j2 @@ -1 +1,5 @@ +{% if ansible_os_family == 'Debian' %} DAEMON_ARGS="$DAEMON_ARGS -insist" +{% elif ansible_os_family == 'RedHat' %} +LSYNCD_OPTIONS="{{ repo_lsyncd_config_file }}" +{% endif %}