Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
immerda
Puppet Modules
imapproxy
Commits
cdbd8a05
Commit
cdbd8a05
authored
Oct 11, 2021
by
mh
Browse files
switch to firewall module
parent
abfcf0d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/init.pp
View file @
cdbd8a05
...
...
@@ -4,11 +4,10 @@
#
# install and manage imapproxy
class
imapproxy
(
$merged_options
=
lookup
(
'imapproxy::options'
,
Hash
,
'hash'
,
{}),
$manage_
sho
rewall
=
false
,
$manage_monit
=
false
,
$merged_options
=
lookup
(
'imapproxy::options'
,
Hash
,
'hash'
,
{}),
$manage_
fi
rewall
=
false
,
$manage_monit
=
false
,
)
{
$default_options
=
{
'server_hostname'
=>
"imap.
${::domain}
"
,
'listen_address'
=>
'127.0.0.1'
,
...
...
@@ -20,14 +19,14 @@ class imapproxy (
$real_options
=
merge
(
$default_options
,
$merged_options
)
case
$facts
[
'operatingsystem'
]
{
'Gentoo'
:
{
include
::
imapproxy::gentoo
}
default
:
{
include
::
imapproxy::base
}
'Gentoo'
:
{
include
imapproxy::gentoo
}
default
:
{
include
imapproxy::base
}
}
if
$manage_
sho
rewall
{
include
::sho
rewall::rules::out::imap
if
$manage_
fi
rewall
{
include
fi
rewall::rules::out::imap
}
if
$manage_monit
{
include
::
imapproxy::monit
include
imapproxy::monit
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment