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
This commit is contained in:
Colleen Murphy 2017-06-14 00:29:15 +02:00
parent c342fb5fe2
commit c40bb69d82
1 changed files with 1 additions and 1 deletions

View File

@ -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