Commit daaff52f authored by Trevor Smith's avatar Trevor Smith
Browse files

add logic to set the restart_cmd variable appropriately for each osfamily and...

add logic to set the restart_cmd variable appropriately for each osfamily and operatingsystemmajrelease for redhat
parent 1f688a01
Loading
Loading
Loading
Loading
+9 −0
Changes for manifests/params.pp: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -7,6 +7,11 @@ class postfix::params {
        default => undef,
      }

      $restart_cmd = $::operatingsystemmajrelease ? {
        '7'     => '/bin/systemctl reload postfix',
        default => '/etc/init.d/postfix reload',
      }

      $mailx_package = 'mailx'

      $master_os_template = "${module_name}/master.cf.redhat.erb"
@@ -15,6 +20,8 @@ class postfix::params {
    'Debian': {
      $seltype = undef

      $restart_cmd = '/etc/init.d/postfix reload'

      $mailx_package = $::lsbdistcodename ? {
        /sarge|etch|lenny|lucid/ => 'mailx',
        default                  => 'bsd-mailx',
@@ -26,6 +33,8 @@ class postfix::params {
    'Suse': {
      $seltype = undef

      $restart_cmd = '/etc/init.d/postfix reload'

      $mailx_package = 'mailx'

      if $::operatingsystem != 'SLES' {