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

View File

@ -204,7 +204,7 @@ if str2bool(hiera('enable_telemetry', false)) {
-> Exec['ceilo-gnocchi-upgrade']
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}" }
# Aodh
$aodh_dsn = match(hiera('aodh::db::database_connection'), $re_dsn)