thias / puppet-postfix

Puppet Postfix module
Other
17 stars 117 forks source link

Need additional logic for Postfix v3 on Debian and Ubuntu #98

Open ianssoftcom opened 8 years ago

ianssoftcom commented 8 years ago

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.

jchonig commented 8 years ago

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

dconry commented 7 years ago

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