]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/rsync/manifests/site.pp
variable assignment does not clone string...
[dsa-puppet.git] / modules / rsync / manifests / site.pp
index 6a4284a3ce846b2fa9819b5cc84355cf17867d20..c534b372bf1a38a51ec73dfb9cea8fcd1692df94 100644 (file)
@@ -40,7 +40,6 @@ define rsync::site (
 
        xinetd::service { "rsync-${name}":
                bind        => $bind,
-               bind6       => $bind6,
                id          => "${name}-rsync",
                server      => '/usr/bin/rsync',
                port        => 'rsync',
@@ -50,5 +49,21 @@ define rsync::site (
                require     => File[$fname_real]
        }
 
+       if $bind6 != '' {
+               if $bind == '' {
+                       fail("Cannot listen on * and a specific ipv6 address")
+               }
+               xinetd::service { "rsync-${name}6":
+                       bind        => $bind6,
+                       id          => "${name}-rsync6",
+                       server      => '/usr/bin/rsync',
+                       port        => 'rsync',
+                       server_args => "--daemon --config=${fname_real}",
+                       ferm        => false,
+                       instances   => $max_clients,
+                       require     => File[$fname_real]
+               }
+       }
+
        Service['rsync']->Service['xinetd']
 }