1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2025-09-07 23:09:30 +00:00

added fluentd::source definition

This commit is contained in:
Max Wilhelm
2015-12-01 14:18:06 +01:00
parent b79c8bfd25
commit ce9a65a4e4
3 changed files with 19 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
define fluentd::config::file (
$ensure = present,
$priority = 50,
$content,
$content = undef,
) {
$base_name = "${title}.conf"

13
manifests/source.pp Normal file
View File

@@ -0,0 +1,13 @@
# Configure a fluentd source
#
define fluentd::source (
$ensure = present,
$priority = 10,
$config = {},
) {
fluentd::config::file { "source-${title}":
ensure => $ensure,
priority => $priority,
content => template( 'fluentd/source.erb'),
}
}