From 567ae88a960ec822197d68bfa1a68e58bf53506f Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Sun, 11 Jun 2017 19:18:20 +0200 Subject: [PATCH] Fix curator cron command string The puppet syntax check complains about the '\%' in the cron command string, but the % still does need to be escaped for the cron to work properly. We double escape it here in the puppet string which will result in a properly single-escaped command string in the crontab. Change-Id: I3d97463a611c43ded12ddb788e9da5e13466e0c5 --- manifests/curator.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/curator.pp b/manifests/curator.pp index 8c45ef2..0c85475 100644 --- a/manifests/curator.pp +++ b/manifests/curator.pp @@ -39,7 +39,7 @@ class logstash::curator ( hour => $cron_hour, minute => $cron_minute, environment => 'PATH=/usr/bin:/usr/local/bin', - command => "curator --logfile /var/log/curator.log delete indices --older-than ${keep_for_days} --time-unit days --timestring \%Y.\%m.\%d" + command => "curator --logfile /var/log/curator.log delete indices --older-than ${keep_for_days} --time-unit days --timestring \\%Y.\\%m.\\%d" } include ::logrotate