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)
This commit is contained in:
Pradeep Kilambi 2017-11-02 13:53:33 -04:00
parent b0e0ed7f07
commit 08253231d7
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ if str2bool(hiera('enable_telemetry', true)) {
Exec['ceilo-gnocchi-upgrade'] ~> Service['ceilometer-collector']
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 {