Added support for RHEL and did some syntax cleaning
Assume that "RedHat" also works where "CentOS" does.
This commit is contained in:
parent
e9aae1dcf6
commit
24ecb51f6f
63 changed files with 544 additions and 497 deletions
|
@ -12,7 +12,7 @@ class mutt {
|
|||
$mail_domain = $domain
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
case $::operatingsystem {
|
||||
openbsd: { $muttconfdir = "/etc/mutt/Muttrc" }
|
||||
default: { $muttconfdir = "/etc" }
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ class mutt {
|
|||
content => template("mutt/Muttrc.local.erb"),
|
||||
mode => "0644",
|
||||
owner => "root",
|
||||
group => $operatingsystem ? {
|
||||
group => $::operatingsystem ? {
|
||||
openbsd => "wheel",
|
||||
default => "root",
|
||||
},
|
||||
|
|
|
@ -4,7 +4,7 @@ set use_8bitmime
|
|||
set hostname=<%= mail_domain %>
|
||||
|
||||
set imap_authenticators="gssapi:plain"
|
||||
<% if operatingsystem = "CentOS" and operatingsystemrelease =~ /^6\./-%>
|
||||
<% if ['CentOS','RedHat'].index(operatingsystem) and operatingsystemrelease =~ /^6\./-%>
|
||||
set ssl_ca_certificates_file="/etc/pki/tls/certs/ca-bundle.crt"
|
||||
<% end -%>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue