projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add build user
[mirror/dsa-puppet.git]
/
modules
/
xinetd
/
templates
/
service.erb
diff --git
a/modules/xinetd/templates/service.erb
b/modules/xinetd/templates/service.erb
index
33a9de7
..
d460f82
100644
(file)
--- a/
modules/xinetd/templates/service.erb
+++ b/
modules/xinetd/templates/service.erb
@@
-10,7
+10,11
@@
service <%= scope.lookupvar('port') %>
socket_type = <%= scope.lookupvar('socket_type') %>
protocol = <%= scope.lookupvar('protocol') %>
socket_type = <%= scope.lookupvar('socket_type') %>
protocol = <%= scope.lookupvar('protocol') %>
+<%- if scope.lookupvar('flags') != '' -%>
flags = <%= scope.lookupvar('flags') %>
flags = <%= scope.lookupvar('flags') %>
+<%- elsif scope.lookupvar('bind') =~ /:/ or scope.lookupvar('bind') == "" -%>
+ flags = IPv6
+<%- end -%>
wait = <%= scope.lookupvar('wait') %>
user = <%= scope.lookupvar('user') %>
<%- if scope.lookupvar('group') != '' -%>
wait = <%= scope.lookupvar('wait') %>
user = <%= scope.lookupvar('user') %>
<%- if scope.lookupvar('group') != '' -%>