From ad53878d79b240e0b12d3df4df222c3fa11a9e45 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 --- 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 9dcd76707..add810992 100644 --- a/elements/puppet-stack-config/puppet-stack-config.pp +++ b/elements/puppet-stack-config/puppet-stack-config.pp @@ -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)