From c40bb69d82fa091b411e9c8f3af094a9abfcdf85 Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Wed, 14 Jun 2017 00:29:15 +0200 Subject: [PATCH] Properly escape % in cron command crontab syntax requires % to be escaped, but puppet complains about '\%' in strings, so we need to double escape it in puppet. This will result in a single-escaped % in the crontab. Change-Id: I2fcb3fca5b2d09e8b0a15036c8d4cbad1a83ba3a --- manifests/fetch_remotes.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/fetch_remotes.pp b/manifests/fetch_remotes.pp index 1004db2..268885a 100644 --- a/manifests/fetch_remotes.pp +++ b/manifests/fetch_remotes.pp @@ -22,7 +22,7 @@ class jeepyb::fetch_remotes( ensure => $ensure, user => $user, minute => $minute, - command => "sleep $((RANDOM%60+90)) && /usr/local/bin/manage-projects -v >> ${logfile} 2>&1", + command => "sleep $((RANDOM\\%60+90)) && /usr/local/bin/manage-projects -v >> ${logfile} 2>&1", } include ::logrotate