aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postfix/templates/group_aliases.conf
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-01-22 23:57:57 +0000
committerMichael Scherer <misc@mageia.org>2012-01-22 23:57:57 +0000
commitcd4451a8645394287172c2ae8cb12b13e8e9af7d (patch)
treeab83bc4889bbdbab5cbadf159ea096c2d6e971ed /modules/postfix/templates/group_aliases.conf
parent136a8bab98483e2e40bbb992e78fcda6a43c1721 (diff)
downloadpuppet-cd4451a8645394287172c2ae8cb12b13e8e9af7d.tar
puppet-cd4451a8645394287172c2ae8cb12b13e8e9af7d.tar.gz
puppet-cd4451a8645394287172c2ae8cb12b13e8e9af7d.tar.bz2
puppet-cd4451a8645394287172c2ae8cb12b13e8e9af7d.tar.xz
puppet-cd4451a8645394287172c2ae8cb12b13e8e9af7d.zip
use get_ldap_servers() instead of hardcoding the servers
Diffstat (limited to 'modules/postfix/templates/group_aliases.conf')
-rw-r--r--modules/postfix/templates/group_aliases.conf5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/postfix/templates/group_aliases.conf b/modules/postfix/templates/group_aliases.conf
index 85788e41..106a0759 100644
--- a/modules/postfix/templates/group_aliases.conf
+++ b/modules/postfix/templates/group_aliases.conf
@@ -1,4 +1,7 @@
-server_host = ldaps://ldap.<%= domain %>:636
+<%-
+ ldap_servers.map! { |l| "'ldaps://#{l}:636'" }
+-%>
+server_host = <%= ldap_servers.join(' ') %>
search_base = <%= dc_suffix %>
query_filter = (&(cn=mga-%u)(objectClass=groupOfNames))
result_attribute = mail