Commit abfcf0d8 authored by mh's avatar mh
Browse files

use lookup instead hiera_hash + linting

parent aa4e7898
......@@ -4,7 +4,7 @@
#
# install and manage imapproxy
class imapproxy (
$merged_options = hiera_hash('imapproxy::options',{}),
$merged_options = lookup('imapproxy::options', Hash, 'hash', {}),
$manage_shorewall = false,
$manage_monit = false,
) {
......@@ -19,15 +19,15 @@ class imapproxy (
}
$real_options = merge($default_options,$merged_options)
case $::operatingsystem {
gentoo: { include imapproxy::gentoo }
default: { include imapproxy::base }
case $facts['operatingsystem'] {
'Gentoo': { include ::imapproxy::gentoo }
default: { include ::imapproxy::base }
}
if $manage_shorewall {
include shorewall::rules::out::imap
include ::shorewall::rules::out::imap
}
if $manage_monit {
include imapproxy::monit
include ::imapproxy::monit
}
}
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