projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
058779c
)
fermport for xinetd::service
author
Peter Palfrader
<peter@palfrader.org>
Sun, 31 Jan 2016 21:47:15 +0000
(22:47 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Sun, 31 Jan 2016 21:47:15 +0000
(22:47 +0100)
modules/xinetd/manifests/service.pp
patch
|
blob
|
history
diff --git
a/modules/xinetd/manifests/service.pp
b/modules/xinetd/manifests/service.pp
index
2ece74c
..
c348579
100644
(file)
--- a/
modules/xinetd/manifests/service.pp
+++ b/
modules/xinetd/manifests/service.pp
@@
-2,7
+2,7
@@
define xinetd::service (
$id,
$server,
$service,
- $port=
$service
,
+ $port=
''
,
$bind='',
$type='',
$socket_type=stream,
@@
-27,9
+27,14
@@
define xinetd::service (
}
if $ferm {
+ $fermport = $port ? {
+ "" => $service,
+ default => $port
+ }
+
@ferm::rule { "dsa-xinetd-${name}":
description => "Allow traffic to ${service}",
- rule => "&SERVICE(${protocol}, ${port})"
+ rule => "&SERVICE(${protocol}, ${
ferm
port})"
}
}