From becbc4924d6f1e8edd0046ae73d71e5d73cb03f4 Mon Sep 17 00:00:00 2001 From: Ed Rude Date: Tue, 6 Aug 2024 12:40:44 -0400 Subject: [PATCH] postfix-ldap required for ldap lookup type on RHEL8+ --- manifests/ldap.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/ldap.pp b/manifests/ldap.pp index 1511d82c..df3077fb 100644 --- a/manifests/ldap.pp +++ b/manifests/ldap.pp @@ -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"], } }