diff --git a/manifests/expirer.pp b/manifests/expirer.pp index 597b09cb..07a16fb7 100644 --- a/manifests/expirer.pp +++ b/manifests/expirer.pp @@ -61,7 +61,7 @@ class ceilometer::expirer ( cron { 'ceilometer-expirer': command => $ceilometer::params::expirer_command, - environment => 'PATH=/bin:/usr/bin:/usr/sbin', + environment => 'PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh', user => 'ceilometer', minute => $minute, hour => $hour, diff --git a/spec/classes/ceilometer_expirer_spec.rb b/spec/classes/ceilometer_expirer_spec.rb index 08d62fd3..945c9f12 100644 --- a/spec/classes/ceilometer_expirer_spec.rb +++ b/spec/classes/ceilometer_expirer_spec.rb @@ -44,7 +44,7 @@ describe 'ceilometer::expirer' do it 'configures a cron' do should contain_cron('ceilometer-expirer').with( :command => 'ceilometer-expirer', - :environment => 'PATH=/bin:/usr/bin:/usr/sbin', + :environment => 'PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh', :user => 'ceilometer', :minute => 1, :hour => 0,