Puppet Class: telegraf::cleanup
- Defined in:
- manifests/cleanup.pp
Overview
Class: telegraf::cleanup
cleanup the old files from previous telegraf versions
Authors
Nick (github.com/thirdeyenick)
Copyright
Copyright 2016 Nine Internet Solutions AG
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'manifests/cleanup.pp', line 13
class telegraf::cleanup {
file {
'/opt/telegraf':
ensure => absent,
recurse => true,
force => true;
}
tidy {
'/etc/telegraf':
recurse => true,
matches => [ 'telegraf.conf.dpkg-dist', 'telegraf.conf.*.backup' ];
}
}
|