From 08253231d7f5183fdb7c7ac2eb74f015c952f78e Mon Sep 17 00:00:00 2001 From: Pradeep Kilambi Date: Thu, 2 Nov 2017 13:53:33 -0400 Subject: [PATCH] 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 ad53878d79b240e0b12d3df4df222c3fa11a9e45) --- elements/puppet-stack-config/puppet-stack-config.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/puppet-stack-config/puppet-stack-config.pp b/elements/puppet-stack-config/puppet-stack-config.pp index 56a31ed54..82c8fe6e2 100644 --- a/elements/puppet-stack-config/puppet-stack-config.pp +++ b/elements/puppet-stack-config/puppet-stack-config.pp @@ -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 {