bind => $bind6,
id => "${name}-rsync6",
server => '/usr/bin/rsync',
- port => 'rsync',
+ service => 'rsync',
server_args => "--daemon --config=${fname_real}",
ferm => false,
instances => $max_clients,
bind => $bind,
id => "${name}-ftp",
server => '/usr/sbin/vsftpd',
- port => 'ftp',
+ service => 'ftp',
server_args => $fname,
ferm => false,
instances => $max_clients,
define xinetd::service (
$id,
$server,
- $port,
+ $service,
+ $port=$service,
$bind='',
$type='',
$socket_type=stream,
if $ferm {
@ferm::rule { "dsa-xinetd-${name}":
- description => "Allow traffic to ${port}",
+ description => "Allow traffic to ${service}",
rule => "&SERVICE(${protocol}, ${port})"
}
}
-service <%= scope.lookupvar('port') %>
+service <%= scope.lookupvar('services') %>
{
<%- 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') %>