params.pp 959 Bytes
Newer Older
1
2
3
class postfix::params {
  case $::osfamily {
    'RedHat': {
4
5
6
      $seltype = $::lsbmajdistrelease ? {
        '4'   => 'etc_t',
        /5|6/ => 'postfix_etc_t',
7
8
9
10
11
12
13
14
15
        default => undef,
      }

      $mailx_package = 'mailx'

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

    'Debian': {
16
      $seltype = undef
17
18
19
20
21
22
23
24
25

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

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

Oliver Bertuch's avatar
Oliver Bertuch committed
26
27
28
29
30
31
32
33
34
35
36
37
38
    'Suse': {
      $seltype = undef

      $mailx_package = 'mailx'

      if $::operatingsystem != 'SLES' {
        fail "Unsupported OS '${::operatingsystem}'"
      }

      $master_os_template = "${module_name}/master.cf.${::operatingsystem}
                             ${::operatingsystemrelease}.erb"
    }

39
40
41
42
43
    default: {
      fail "Unsupported OS family '${::osfamily}'"
    }
  }
}