Skip to content

Commit

Permalink
postfix-ldap required for ldap lookup type on RHEL8+
Browse files Browse the repository at this point in the history
  • Loading branch information
edrude committed Aug 6, 2024
1 parent d4058dc commit becbc49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manifests/ldap.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
assert_type(String, $postfix::ldap_host)
assert_type(String, $postfix::ldap_options)

if $facts['os']['family'] == 'Debian' {
if $facts['os']['family'] == 'Debian' or ($facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] >= '8') {
package { 'postfix-ldap':
before => File["${postfix::confdir}/ldap-aliases.cf"],
ensure => installed,
before => File["${postfix::confdir}/ldap-aliases.cf"],
}
}

Expand Down

0 comments on commit becbc49

Please sign in to comment.