puppet-postfix
puppet-postfix copied to clipboard
Need additional logic for Postfix v3 on Debian and Ubuntu
The daemon_directory path has changed with v3, and the module should account for that.
I used the following work-around for Ubuntu Xenial:
if $::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease,'16.04') >=0 {
class { '::postfix::server':
relayhost => $smarthost,
daemon_directory => '/usr/lib/postfix/sbin',
}
} else {
class { '::postfix::server':
relayhost => $smarthost,
}
}
Thanks,
i.
3.0 also needs compatibility_level=2 to run, see the compatibility mode web page.
See also: https://github.com/thias/puppet-postfix/pull/112