Index: modules/filtermaster/templates/hgrc.erb |
diff --git a/modules/filtermaster/templates/hgrc.erb b/modules/filtermaster/templates/hgrc.erb |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2a7692b6e60a6fd6bf49d8497c94d24b136d56a5 |
--- /dev/null |
+++ b/modules/filtermaster/templates/hgrc.erb |
@@ -0,0 +1,11 @@ |
+[paths] |
+default = <%= @repository %> |
+ |
+[hooks] |
+# Puppet: Filtermaster::Repo_download['<%= @title %>'].static_files |
+<%- @static_files.each do |name| -%> |
+<%- target = "/home/rsync/generated/gzip/#{name}.gz" -%> |
+<%- id = scope.function_md5([name]) -%> |
+post-update.<%= id %> = 7za a -tgzip -y -mx=9 -bd -mpass=5 "<%= target %>" "<%= name %>" >/dev/null |
+<%- end -%> |
+ |