aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-05-02 15:44:25 +0000
committerMichael Scherer <misc@mageia.org>2011-05-02 15:44:25 +0000
commitfb4cee0bd630cd9cb62cf6980d375d10508b697b (patch)
treea830cb01b93005fb0b520877d5305ee27b83f262 /modules
parente7690275facfdc272b5f5c48850cec44ab6e4528 (diff)
downloadpuppet-fb4cee0bd630cd9cb62cf6980d375d10508b697b.tar
puppet-fb4cee0bd630cd9cb62cf6980d375d10508b697b.tar.gz
puppet-fb4cee0bd630cd9cb62cf6980d375d10508b697b.tar.bz2
puppet-fb4cee0bd630cd9cb62cf6980d375d10508b697b.tar.xz
puppet-fb4cee0bd630cd9cb62cf6980d375d10508b697b.zip
- add hooks to send mail to i18n ml
Diffstat (limited to 'modules')
-rw-r--r--modules/subversion/manifests/init.pp1
-rw-r--r--modules/subversion/templates/hook_sendmail.pl10
2 files changed, 11 insertions, 0 deletions
diff --git a/modules/subversion/manifests/init.pp b/modules/subversion/manifests/init.pp
index de65ba62..075d5c71 100644
--- a/modules/subversion/manifests/init.pp
+++ b/modules/subversion/manifests/init.pp
@@ -140,6 +140,7 @@ class subversion {
define repository ($group = "svn",
$public = true,
$commit_mail = '',
+ $i18n_mail = '',
$cia_post = true,
$cia_module = 'default',
$cia_ignore_author = '',
diff --git a/modules/subversion/templates/hook_sendmail.pl b/modules/subversion/templates/hook_sendmail.pl
index c9e95f27..54b4fe22 100644
--- a/modules/subversion/templates/hook_sendmail.pl
+++ b/modules/subversion/templates/hook_sendmail.pl
@@ -12,3 +12,13 @@
<%- commit_mail.each do |mail| -%>
- <%= mail %>
<%- end -%>
+<%- if i18n_mail -%>
+'.*\.pot$':
+ PATH: "/usr/bin:/usr/local/bin"
+ handler: Alternative
+ alternative: HTML::ColorDiff
+ with-diff: 1
+ max_diff_length: 20000
+ from: root@<%= domain %>
+ to: <%= i18n_mail %>
+<%- end -%>