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 commitad53878d79
) (cherry picked from commit08253231d7
)
This commit is contained in:
parent
5711e170a7
commit
f48b9024cd
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue