Added Ubuntu support for sendmail::client class.
This commit is contained in:
parent
b2bce840c9
commit
9a90aa13ab
2 changed files with 19 additions and 19 deletions
|
@ -6,11 +6,10 @@ class sendmail::common {
|
|||
$mail_domain = $domain
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
centos,fedora: {
|
||||
package { ["sendmail", "sendmail-cf"]:
|
||||
ensure => installed,
|
||||
}
|
||||
if $operatingsystem != "openbsd" {
|
||||
package { "sendmail":
|
||||
name => [ "sendmail", "sendmail-cf", ],
|
||||
ensure => installed,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -31,7 +30,7 @@ class sendmail::client inherits sendmail::common {
|
|||
}
|
||||
|
||||
case $operatingsystem {
|
||||
openbsd: {
|
||||
"openbsd": {
|
||||
file { "/usr/share/sendmail/cf/submit.mc":
|
||||
ensure => present,
|
||||
content => template("sendmail/submit.mc.erb"),
|
||||
|
@ -49,6 +48,7 @@ class sendmail::client inherits sendmail::common {
|
|||
group => "root",
|
||||
mode => 0644,
|
||||
notify => Exec["make submit.cf"],
|
||||
require => Package["sendmail"],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -56,12 +56,8 @@ class sendmail::client inherits sendmail::common {
|
|||
exec { "make submit.cf":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
cwd => $operatingsystem ? {
|
||||
openbsd => "/usr/share/sendmail/cf",
|
||||
default => "/etc/mail",
|
||||
},
|
||||
require => $operatingsystem ? {
|
||||
openbsd => undef,
|
||||
default => Package["sendmail-cf"],
|
||||
"openbsd" => "/usr/share/sendmail/cf",
|
||||
default => "/etc/mail",
|
||||
},
|
||||
refreshonly => true,
|
||||
}
|
||||
|
@ -70,13 +66,14 @@ class sendmail::client inherits sendmail::common {
|
|||
ensure => present,
|
||||
owner => "root",
|
||||
group => $operatingsystem ? {
|
||||
openbsd => "wheel",
|
||||
default => "root",
|
||||
"openbsd" => "wheel",
|
||||
"ubuntu" => "smmsp",
|
||||
default => "root",
|
||||
},
|
||||
mode => 0644,
|
||||
source => $operatingsystem ? {
|
||||
openbsd => "/usr/share/sendmail/cf/submit.cf",
|
||||
default => undef,
|
||||
"openbsd" => "/usr/share/sendmail/cf/submit.cf",
|
||||
default => undef,
|
||||
},
|
||||
require => Exec["make submit.cf"],
|
||||
}
|
||||
|
@ -137,7 +134,7 @@ class sendmail::server inherits sendmail::common {
|
|||
},
|
||||
require => $operatingsystem ? {
|
||||
openbsd => undef,
|
||||
default => Package["sendmail-cf"],
|
||||
default => Package["sendmail"],
|
||||
},
|
||||
refreshonly => true,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue