projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
snapshot: allow 6 requests per minute even to clients that we think are excessive
[mirror/dsa-puppet.git]
/
modules
/
xinetd
/
templates
/
service.erb
diff --git
a/modules/xinetd/templates/service.erb
b/modules/xinetd/templates/service.erb
index
8219f39
..
c969b33
100644
(file)
--- a/
modules/xinetd/templates/service.erb
+++ b/
modules/xinetd/templates/service.erb
@@
-1,15
+1,33
@@
-service <%= scope.lookupvar('port') %>
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
+service <%= scope.lookupvar('service') %>
{
<%- if scope.lookupvar('bind') != '' -%>
bind = <%= scope.lookupvar('bind') %>
{
<%- if scope.lookupvar('bind') != '' -%>
bind = <%= scope.lookupvar('bind') %>
+<%- end -%>
+<%- if scope.lookupvar('type') != '' -%>
+ type = <%= scope.lookupvar('type') %>
+<%- end -%>
+<%- if scope.lookupvar('port') != '' -%>
+ port = <%= scope.lookupvar('port') %>
<%- end -%>
id = <%= scope.lookupvar('id') %>
<%- end -%>
id = <%= scope.lookupvar('id') %>
- socket_type = <%= scope.lookupvar('s
tream
') %>
+ socket_type = <%= scope.lookupvar('s
ocket_type
') %>
protocol = <%= scope.lookupvar('protocol') %>
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') %>
wait = <%= scope.lookupvar('wait') %>
user = <%= scope.lookupvar('user') %>
+<%- if scope.lookupvar('group') != '' -%>
+ group = <%= scope.lookupvar('group') %>
+<%- end -%>
server = <%= scope.lookupvar('server') %>
server_args = <%= scope.lookupvar('server_args') %>
nice = <%= scope.lookupvar('nice') %>
server = <%= scope.lookupvar('server') %>
server_args = <%= scope.lookupvar('server_args') %>
nice = <%= scope.lookupvar('nice') %>