Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/fluent/manifests/plugin.pp

Issue 29469606: #1634 - Update file resource syntax in module fluent (Closed)
Patch Set: Created June 20, 2017, 4:55 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « modules/fluent/manifests/init.pp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « modules/fluent/manifests/init.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld