summaryrefslogtreecommitdiff
path: root/puppet/modules/site_postfix/templates
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-08-21 17:13:34 -0700
committerelijah <elijah@riseup.net>2015-08-21 17:13:34 -0700
commitb5fbda1ca3832043e1636ee964a806ff222cb05f (patch)
tree83045c3eb9bc1ba66d8b7f6b562172762e45fe6a /puppet/modules/site_postfix/templates
parentf232e63b022933a57ac8e86b23d8df6b6bb86930 (diff)
add support for configurable mail alias maps
Diffstat (limited to 'puppet/modules/site_postfix/templates')
-rw-r--r--puppet/modules/site_postfix/templates/custom-aliases.erb11
1 files changed, 11 insertions, 0 deletions
diff --git a/puppet/modules/site_postfix/templates/custom-aliases.erb b/puppet/modules/site_postfix/templates/custom-aliases.erb
new file mode 100644
index 00000000..f261514b
--- /dev/null
+++ b/puppet/modules/site_postfix/templates/custom-aliases.erb
@@ -0,0 +1,11 @@
+#
+# This file is managed by puppet.
+#
+# This is a map of custom, non-standard aliases. The contents of this file
+# are derived from the node property `mx.aliases`.
+#
+
+<%- @aliases.keys.sort.each do |from| -%>
+"<%= from %>": "<%= [@aliases[from]].flatten.join('", "') %>"
+<%- end -%>
+