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
|
@ -1,13 +1,13 @@
|
|||
class dovecot::common {
|
||||
|
||||
case $operatingsystem {
|
||||
centos,fedora: {
|
||||
case $::operatingsystem {
|
||||
"centos","redhat","fedora": {
|
||||
package { ["dovecot"]:
|
||||
ensure => installed,
|
||||
}
|
||||
}
|
||||
default: {
|
||||
fail("Dovecot module not supported in ${operatingsystem}.")
|
||||
fail("Dovecot module not supported in ${::operatingsystem}.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,12 +27,12 @@ class dovecot::common {
|
|||
|
||||
class dovecot::server inherits dovecot::common {
|
||||
|
||||
case $operatingsystem {
|
||||
centos,fedora: {
|
||||
case $::operatingsystem {
|
||||
"centos","redhat","fedora": {
|
||||
$dovecot_ssl_dir = "/etc/pki/tls"
|
||||
}
|
||||
default: {
|
||||
fail("Dovecot module not supported in ${operatingsystem}.")
|
||||
fail("Dovecot module not supported in ${::operatingsystem}.")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue