1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2025-09-11 16:19:29 +00:00

debian support, fix exec validations and repository

This commit is contained in:
Coto Cisternas
2016-01-15 17:35:19 -03:00
parent 2e5892663e
commit e693af3c42
4 changed files with 38 additions and 30 deletions

View File

@@ -17,9 +17,12 @@ define fluentd::config::file (
# clean up to ensure priority changes take effect
exec { "apply priority change for ${base_name}":
command => "rm ${::fluentd::conf_dir}/*-${base_name}",
onlyif => "ls ${::fluentd::conf_dir}/*-${base_name} | grep -v ${config_name}",
path => '/bin:/usr/bin:/usr/local/bin',
cwd => "${::fluentd::conf_dir}",
command => "rm *-${base_name}",
onlyif => "ls *-${base_name} | grep -v ${config_name}",
before => File[$config_path],
# require => Class['Fluentd::Config'],
notify => Class['Fluentd::Service'],
}