blob: 9d4296e535078a8ab1a154e6921da0bf0248620b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
class site_shorewall::service::webapp_api {
$api = hiera('api')
$api_port = $api['port']
# define macro for incoming services
file { '/etc/shorewall/macro.leap_webapp_api':
content => "PARAM - - tcp $api_port ",
notify => Service['shorewall']
}
shorewall::rule {
'net2fw-webapp_api':
source => 'net',
destination => '$FW',
action => 'leap_webapp_api(ACCEPT)',
order => 200;
}
}
|