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
......@@ -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' {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment