params.pp 643 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
26
27
28
29
30

      $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}'"
    }
  }
}