Fix the expirer cron task to run correctly

We need to escape % for cron to run correctly. Without
this the cron task fails with syntax error.

Change-Id: I8eac2d978380ccc1c6998929c8aa6a440ed4bcce
(cherry picked from commit ad53878d79)
(cherry picked from commit 08253231d7)
This commit is contained in:
Pradeep Kilambi 2017-11-02 13:53:33 -04:00
parent 5711e170a7
commit f48b9024cd
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ if str2bool(hiera('enable_telemetry', true)) {
include ::ceilometer::agent::auth
Cron <| title == 'ceilometer-expirer' |> { command =>
"sleep $((\$(od -A n -t d -N 3 /dev/urandom) % 86400)) && ${::ceilometer::params::expirer_command}" }
"sleep $((\$(od -A n -t d -N 3 /dev/urandom) \\% 86400)) && ${::ceilometer::params::expirer_command}" }
# TODO: add support for setting these to puppet-ceilometer
ceilometer_config {