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:
@@ -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
13
manifests/source.pp
Normal 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'),
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user