File tree 5 files changed +18
-4
lines changed
5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ The following parameters are available in the `postfix` class:
100
100
* [ ` ldap_base ` ] ( #-postfix--ldap_base )
101
101
* [ ` ldap_host ` ] ( #-postfix--ldap_host )
102
102
* [ ` ldap_options ` ] ( #-postfix--ldap_options )
103
+ * [ ` ldap_packages ` ] ( #-postfix--ldap_packages )
103
104
* [ ` lookup_table_type ` ] ( #-postfix--lookup_table_type )
104
105
* [ ` mail_user ` ] ( #-postfix--mail_user )
105
106
* [ ` mailman ` ] ( #-postfix--mailman )
@@ -257,6 +258,14 @@ Example: `start_tls = yes`.
257
258
258
259
Default value: ` undef `
259
260
261
+ ##### <a name =" -postfix--ldap_packages " ></a >` ldap_packages `
262
+
263
+ Data type: ` Array[String[1]] `
264
+
265
+ An array of package names to install for LDAP support if $ldap is true.
266
+
267
+ Default value: ` [] `
268
+
260
269
##### <a name =" -postfix--lookup_table_type " ></a >` lookup_table_type `
261
270
262
271
Data type: ` String `
Original file line number Diff line number Diff line change 1
1
---
2
2
postfix::params::mailx_package : ' bsd-mailx'
3
3
postfix::params::master_os_template : ' postfix/master.cf.debian.erb'
4
+ postfix::ldap_packages : ['postfix-ldap']
4
5
...
Original file line number Diff line number Diff line change 1
1
---
2
2
3
3
postfix::params::mailx_package : ' s-nail'
4
+ postfix::ldap_packages : ['postfix-ldap']
Original file line number Diff line number Diff line change 86
86
# A free form string that can define any LDAP options to be passed through (ldap_table(5)).
87
87
# Example: `start_tls = yes`.
88
88
#
89
+ # @param ldap_packages
90
+ # An array of package names to install for LDAP support if $ldap is true.
91
+ #
89
92
# @param lookup_table_type
90
93
# Table format type as described in http://www.postfix.org/DATABASE_README.html#types.
91
94
# Type has to be supported by system, see "postconf -m" for supported types.
262
265
Optional[String] $ldap_base = undef ,
263
266
Optional[String] $ldap_host = undef ,
264
267
Optional[String] $ldap_options = undef ,
268
+ Array[String[1]] $ldap_packages = [],
265
269
String $lookup_table_type = ' hash' ,
266
270
String $mail_user = ' vmail' , # postfix_mail_user
267
271
Boolean $mailman = false ,
Original file line number Diff line number Diff line change 8
8
assert_type(String, $postfix::ldap_host )
9
9
assert_type(String, $postfix::ldap_options )
10
10
11
- if $facts [' os' ][' family' ] == ' Debian' {
12
- package { 'postfix-ldap' :
13
- before => File [" ${postfix::confdir} /ldap-aliases.cf" ],
14
- }
11
+ package { $postfix::ldap_packages :
12
+ ensure => installed,
13
+ before => File [" ${postfix::confdir} /ldap-aliases.cf" ],
15
14
}
16
15
17
16
if ! $postfix::ldap_base {
You can’t perform that action at this time.
0 commit comments