Signed-off-by: Stephen Gran <steve@lobefin.net>
define xinetd::service (
- $bind,
$id,
$server,
$port,
+ $bind='',
$socket_type=stream,
$protocol=tcp,
$flags=IPv6,
}
}
- file { "/etc/xinetd.d/${name}.conf":
+ file { "/etc/xinetd.d/${name}":
ensure => $ensure,
noop => true,
content => template('xinetd/service.erb'),
service <%= scope.lookupvar('port') %>
{
+<%- if scope.lookupvar('bind') != '' -%>
bind = <%= scope.lookupvar('bind') %>
+<%- end -%>
id = <%= scope.lookupvar('id') %>
socket_type = <%= scope.lookupvar('stream') %>