params.pp 646 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class postfix::params {
  case $::osfamily {
    'RedHat': {
      $seltype = $::lsbmajdistrelease {
        '4'     => 'etc_t',
        '5','6' => 'postfix_etc_t',
        default => undef,
      }

      $mailx_package = 'mailx'

      $master_os_template = "${module_name}/master.cf.redhat.erb"
    }

    'Debian': {
      $seltype = undef,

      $mailx_package = $::lsbdistcodename ? {
        /sarge|etch|lenny|lucid/ => 'mailx',
        default                  => 'bsd-mailx',
      }

      $master_os_template = "${module_name}/master.cf.debian.erb"
    }

    default: {
      fail "Unsupported OS family '${::osfamily}'"
    }
  }
}