class { '::ceilometer::alarm::evaluator':
}
- # Purge 1 month old meters
- class { '::ceilometer::expirer':
- time_to_live => '2592000'
- }
+ # Purge old meters
+ class { '::ceilometer::expirer': }
# Install notification agent
class { '::ceilometer::agent::notification':
# [*weekday*]
# (optional) Defaults to '*'.
#
-# [*time_to_live*]
-# (optional) DEPRECATED. Number of seconds that samples are kept in the database.
-# Should be a valid integer
-# Defaults to '-1' to disable TTL and keep forever the datas.
class ceilometer::expirer (
- $enable_cron = True,
- $minute = 1,
- $hour = 0,
- $monthday = '*',
- $month = '*',
- $weekday = '*',
- # Deprecated parameters
- $time_to_live = '-1',
+ $enable_cron = True,
+ $minute = 1,
+ $hour = 0,
+ $monthday = '*',
+ $month = '*',
+ $weekday = '*',
) {
include ::ceilometer::params
Package<| title == 'ceilometer-common' |> -> Class['ceilometer::expirer']
- warning('Parameter "time_to_live" is deprecated and will be removed in next release. Use metering_time_to_live in "ceilometer" class instead.')
-
- ceilometer_config {
- 'database/time_to_live': value => $time_to_live;
- }
-
if $enable_cron {
cron { 'ceilometer-expirer':
command => $ceilometer::params::expirer_command,
end
let :params do
- { :time_to_live => '-1' }
+ {}
end
shared_examples_for 'ceilometer-expirer' do
it { is_expected.to_not contain_cron('ceilometer-expirer') }
end
- it 'configures database section in ceilometer.conf' do
- is_expected.to contain_ceilometer_config('database/time_to_live').with_value( params[:time_to_live] )
- end
-
end
context 'on Debian platforms' do