diff --git a/manifests/params.pp b/manifests/params.pp index 7b80935..e8b82ee 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -37,7 +37,13 @@ $postfix_version = undef $command_directory = '/usr/sbin' $config_directory = '/etc/postfix' - $daemon_directory = '/usr/lib/postfix' + $daemon_directory = $::operatingsystemmajrelease ? { + '16.04' => '/usr/lib/postfix/sbin', + '16.10' => '/usr/lib/postfix/sbin', + '17.04' => '/usr/lib/postfix/sbin', + '17.10' => '/usr/lib/postfix/sbin', + default => '/usr/lib/postfix', + } $data_directory = '/var/lib/postfix' $manpage_directory = '/usr/share/man' $readme_directory = '/usr/share/doc/postfix'