blob: 0c6c824d296939bbba1cfa1f36dbe5c9e2a492cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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'],
require => Package['shorewall']
}
shorewall::rule {
'net2fw-webapp_api':
source => 'net',
destination => '$FW',
action => 'leap_webapp_api(ACCEPT)',
order => 200;
}
}
|