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

Unified Diff: modules/adblockplus/templates/log/rotation.erb

Issue 29333281: Issue 3307 - Introduce class adblockplus::log::rotation (Closed)
Patch Set: Created Jan. 7, 2016, 1:14 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/adblockplus/manifests/log/rotation.pp ('k') | modules/private-stub/hiera/base.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/templates/log/rotation.erb
diff --git a/modules/adblockplus/templates/log/rotation.erb b/modules/adblockplus/templates/log/rotation.erb
new file mode 100644
index 0000000000000000000000000000000000000000..bcf443d3f93b049cca860de3985aa02bb6331ea4
--- /dev/null
+++ b/modules/adblockplus/templates/log/rotation.erb
@@ -0,0 +1,24 @@
+# Puppet: Adblockplus::Log::Rotation['<%= @title %>']
+<%= @path %> {
+ <%= @interval %>
+ compress
+ missingok
+ nodateext
+ rotate <%= @count.to_i %>
+ sharedscripts
+ shred
+<% unless @postrotate.empty? -%>
+ postrotate
+ <%= @postrotate.join("\n ") rescue @postrotate %>
+ endscript
+<% end -%>
+<% if @upload -%>
+ lastaction
+ <%= scope.function_shellquote([
+ "ssh", "-i", "/etc/ssh/ssh_host_rsa_key",
+ scope.function_hiera("adblockplus::log::uplink", "localhost"),
+ @name,
+ ]) %> < <%= @path %>.1.gz
+ endscript
+<% end -%>
+}
« no previous file with comments | « modules/adblockplus/manifests/log/rotation.pp ('k') | modules/private-stub/hiera/base.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld