]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/xinetd/templates/service.erb
Try to handle xinetd flags sanely
[dsa-puppet.git] / modules / xinetd / templates / service.erb
index 33a9de7a40f659edf8aeb990dd8d027b31d7d4fb..9478c1d138aaba88e3c6e284539742b5c12f1f13 100644 (file)
@@ -10,7 +10,11 @@ service <%= scope.lookupvar('port') %>
 
        socket_type     = <%= scope.lookupvar('socket_type') %>
        protocol        = <%= scope.lookupvar('protocol') %>
+<%- if scope.lookupvar('flags') != '' -%>
        flags           = <%= scope.lookupvar('flags') %>
+<%- elsif scope.lookupvar('bind') =~  ':' -%>
+       flags           = IPv6
+<%- end -%>
        wait            = <%= scope.lookupvar('wait') %>
        user            = <%= scope.lookupvar('user') %>
 <%- if scope.lookupvar('group') != '' -%>