puppet-postfix icon indicating copy to clipboard operation
puppet-postfix copied to clipboard

Need additional logic for Postfix v3 on Debian and Ubuntu

Open ianssoftcom opened this issue 8 years ago • 2 comments

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.

ianssoftcom avatar Jul 29 '16 18:07 ianssoftcom

3.0 also needs compatibility_level=2 to run, see the compatibility mode web page.

jchonig avatar Sep 29 '16 14:09 jchonig

See also: https://github.com/thias/puppet-postfix/pull/112

dconry avatar May 03 '17 13:05 dconry