| OLD | NEW |
| 1 # == Type: fluent::plugin | 1 # == Type: fluent::plugin |
| 2 # | 2 # |
| 3 # Maintain Fluentd plugin files. | 3 # Maintain Fluentd plugin files. |
| 4 # | 4 # |
| 5 # Type fluent::plugin is a thin layer around a single Puppet file resource | 5 # Type fluent::plugin is a thin layer around a single Puppet file resource |
| 6 # definition, combining the available parameters with ones computed internally | 6 # definition, combining the available parameters with ones computed internally |
| 7 # (aligned with http://docs.fluentd.org/articles/plugin-management). | 7 # (aligned with http://docs.fluentd.org/articles/plugin-management). |
| 8 # | 8 # |
| 9 # === Parameters: | 9 # === Parameters: |
| 10 # | 10 # |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 $target = undef, | 43 $target = undef, |
| 44 ) { | 44 ) { |
| 45 | 45 |
| 46 include fluent | 46 include fluent |
| 47 include stdlib | 47 include stdlib |
| 48 | 48 |
| 49 file {"fluent::plugin#$title": | 49 file {"fluent::plugin#$title": |
| 50 content => $content, | 50 content => $content, |
| 51 ensure => $ensure, | 51 ensure => $ensure, |
| 52 group => $fluent::group, | 52 group => $fluent::group, |
| 53 mode => 0640, | 53 mode => '0640', |
| 54 notify => Service['fluent'], | 54 notify => Service['fluent'], |
| 55 owner => getparam(File['fluent'], 'owner'), | 55 owner => getparam(File['fluent'], 'owner'), |
| 56 path => "$fluent::directory/plugin/$name.rb", | 56 path => "$fluent::directory/plugin/$name.rb", |
| 57 require => File["$fluent::directory/plugin"], | 57 require => File["$fluent::directory/plugin"], |
| 58 source => $source, | 58 source => $source, |
| 59 target => $target, | 59 target => $target, |
| 60 } | 60 } |
| 61 } | 61 } |
| OLD | NEW |