Use a pre-up script to turn off accept_ra
[mirror/dsa-puppet.git] / modules / xinetd / templates / service.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 service <%= scope.lookupvar('service') %>
7 {
8 <%- if scope.lookupvar('bind') != '' -%>
9         bind            = <%= scope.lookupvar('bind') %>
10 <%- end -%>
11 <%- if scope.lookupvar('type') != '' -%>
12         type            = <%= scope.lookupvar('type') %>
13 <%- end -%>
14 <%- if scope.lookupvar('port') != '' -%>
15         port            = <%= scope.lookupvar('port') %>
16 <%- end -%>
17         id              = <%= scope.lookupvar('id') %>
18
19         socket_type     = <%= scope.lookupvar('socket_type') %>
20         protocol        = <%= scope.lookupvar('protocol') %>
21 <%- if scope.lookupvar('flags') != '' -%>
22         flags           = <%= scope.lookupvar('flags') %>
23 <%- elsif scope.lookupvar('bind') =~  /:/ or scope.lookupvar('bind') == "" -%>
24         flags           = IPv6
25 <%- end -%>
26         wait            = <%= scope.lookupvar('wait') %>
27         user            = <%= scope.lookupvar('user') %>
28 <%- if scope.lookupvar('group') != '' -%>
29         group           = <%= scope.lookupvar('group') %>
30 <%- end -%>
31         server          = <%= scope.lookupvar('server') %>
32         server_args     = <%= scope.lookupvar('server_args') %>
33         nice            = <%= scope.lookupvar('nice') %>
34         instances       = <%= scope.lookupvar('instances') %>
35         per_source      = <%= scope.lookupvar('per_source') %>
36         cps             = <%= scope.lookupvar('cps') %>
37 }