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:
parent
b0e0ed7f07
commit
08253231d7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue