Puppet Class: ceilometer::expirer

Defined in:
manifests/expirer.pp

Overview

Parameters:

  • time_to_live (Any) (defaults to: '-1')
  • minute (Any) (defaults to: 1)
  • hour (Any) (defaults to: 0)
  • monthday (Any) (defaults to: '*')
  • month (Any) (defaults to: '*')
  • weekday (Any) (defaults to: '*')


45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'manifests/expirer.pp', line 45

class ceilometer::expirer (
  $time_to_live   = '-1',
  $minute         = 1,
  $hour           = 0,
  $monthday       = '*',
  $month          = '*',
  $weekday        = '*',
) {

  include ceilometer::params

  Package<| title == 'ceilometer-common' |> -> Class['ceilometer::expirer']

  ceilometer_config {
    'database/time_to_live': value => $time_to_live;
  }

  cron { 'ceilometer-expirer':
    command     => $ceilometer::params::expirer_command,
    environment => 'PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh',
    user        => 'ceilometer',
    minute      => $minute,
    hour        => $hour,
    monthday    => $monthday,
    month       => $month,
    weekday     => $weekday
  }


}