File tree Expand file tree Collapse file tree
templates/plugin/write_graphite Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363
6464 it 'includes carbon configuration' do
6565 should contain_concat__fragment ( 'collectd_plugin_write_graphite_conf_graphite_default_tcp_2003' ) . with ( {
66- :content => /<Node "graphite_default" >/ ,
66+ :content => /<Carbon >/ ,
6767 :target => '/etc/collectd/conf.d/write_graphite-config.conf' ,
6868 } )
6969
Original file line number Diff line number Diff line change 1- <%- if @collectd_version and (scope.function_versioncmp([@collectd_version, '5.2']) <= 0) -%>
2- <Carbon >
3- <%- else -%>
1+ <%- if @collectd_version and (scope.function_versioncmp([@collectd_version, '5.3']) >= 0) -%>
42 <Node "<%= @title %> ">
3+ <%- else -%>
4+ < Carbon >
55<%- end -%>
66 Host "<%= @graphitehost %> "
77 Port "<%= @graphiteport %> "
1717 LogSendErrors <%= @logsenderrors %>
1818 Protocol "<%= @protocol %> "
1919<%- end -%>
20- <%- if @collectd_version and ( scope . function_versioncmp ( [ @collectd_version , '5.2' ] ) <= 0 ) -%>
21- </ Carbon >
22- <%- else -%>
20+ <%- if @collectd_version and ( scope . function_versioncmp ( [ @collectd_version , '5.3' ] ) >= 0 ) -%>
2321</ Node >
22+ <%- else -%>
23+ </ Carbon>
2424<%- end -%>
You can’t perform that action at this time.
0 commit comments