1 # == Class: glance::cache::cleaner
3 # Installs a cron job to run glance-cache-cleaner.
8 # (optional) Defaults to '1'.
11 # (optional) Defaults to '0'.
14 # (optional) Defaults to '*'.
17 # (optional) Defaults to '*'.
20 # (optional) Defaults to '*'.
23 # command options to add to the cronjob
24 # (eg. point to config file, or redirect output)
25 # (optional) Defaults to ''.
27 class glance::cache::cleaner (
33 $command_options = '',
36 include glance::params
38 cron { 'glance-cache-cleaner':
39 command => "${glance::params::cache_cleaner_command} ${command_options}",
40 environment => 'PATH=/bin:/usr/bin:/usr/sbin',
44 monthday => $monthday,
47 require => Package[$::glance::params::api_package_name],