Puppet Class: monit::firewall
- Defined in:
-
manifests/firewall.pp
Summary
This class handles the firewall configuration.
Overview
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'manifests/firewall.pp', line 6
class monit::firewall {
if $caller_module_name != $module_name {
fail("Use of private class ${name} by ${caller_module_name}")
}
if $monit::httpd and $monit::manage_firewall {
if defined('::firewall') {
firewall { "${monit::httpd_port} allow Monit inbound traffic":
jump => 'accept',
dport => $monit::httpd_port,
proto => 'tcp',
}
}
}
}
|