Defined Type: graphite::carbon_cache_instance
- Defined in:
- modules/graphite/manifests/carbon_cache_instance.pp
Overview
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'modules/graphite/manifests/carbon_cache_instance.pp', line 1
define graphite::carbon_cache_instance {
$service_name = "carbon-cache@${title}"
$log_dir = "/var/log/carbon/${service_name}"
service { $service_name:
ensure => 'running',
provider => 'systemd',
enable => true,
require => File['/lib/systemd/system/carbon-cache@.service'],
}
systemd::tmpfile{ "${service_name}-logs-cleanup":
ensure => 'present',
content => "e ${log_dir} - - - 15d",
}
}
|