X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fxinetd%2Ftemplates%2Fservice.erb;h=c969b33679c7f2c216a020fdd4a8b4e82a14556e;hb=8c54c329a260972d770be7087bfeb235b978cbf4;hp=8219f3933e4af069b851c2f7a78e590b3442b473;hpb=e73206cd1c3007453ccc3df0bd0a8605081fd0f0;p=mirror%2Fdsa-puppet.git diff --git a/modules/xinetd/templates/service.erb b/modules/xinetd/templates/service.erb index 8219f3933..c969b3367 100644 --- 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') %> +<%- end -%> +<%- if scope.lookupvar('type') != '' -%> + type = <%= scope.lookupvar('type') %> +<%- end -%> +<%- if scope.lookupvar('port') != '' -%> + port = <%= scope.lookupvar('port') %> <%- end -%> id = <%= scope.lookupvar('id') %> - socket_type = <%= scope.lookupvar('stream') %> + socket_type = <%= scope.lookupvar('socket_type') %> protocol = <%= scope.lookupvar('protocol') %> +<%- if 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') != '' -%> + group = <%= scope.lookupvar('group') %> +<%- end -%> server = <%= scope.lookupvar('server') %> server_args = <%= scope.lookupvar('server_args') %> nice = <%= scope.lookupvar('nice') %>