Revert "Try to handle xinetd flags sanely"
authorPeter Palfrader <peter@palfrader.org>
Mon, 24 Jun 2013 19:24:04 +0000 (21:24 +0200)
committerPeter Palfrader <peter@palfrader.org>
Mon, 24 Jun 2013 19:24:04 +0000 (21:24 +0200)
This reverts commit aae8b555c902a217d68dc96ccd50ae6144e8e686.

modules/rsync/manifests/site.pp
modules/xinetd/manifests/service.pp
modules/xinetd/templates/service.erb

index 6a4284a..bb2ee14 100644 (file)
@@ -1,6 +1,5 @@
 define rsync::site (
        $bind='',
-       $bind6='',
        $source='',
        $content='',
        $fname='',
@@ -40,7 +39,6 @@ define rsync::site (
 
        xinetd::service { "rsync-${name}":
                bind        => $bind,
-               bind6       => $bind6,
                id          => "${name}-rsync",
                server      => '/usr/bin/rsync',
                port        => 'rsync',
index 5c8f954..522af17 100644 (file)
@@ -6,7 +6,7 @@ define xinetd::service (
        $type='',
        $socket_type=stream,
        $protocol=tcp,
-       $flags='',
+       $flags=IPv6,
        $wait=no,
        $user=root,
        $group='',
index 9478c1d..33a9de7 100644 (file)
@@ -10,11 +10,7 @@ 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') != '' -%>