}
# We don't need a firewall rule because it's added in vsftp.pp
- xinetd::service { "vsftpd-${title}":
+ xinetd::service { "vsftpd-${name}":
bind => $bind,
id => $name,
server => '/usr/sbin/vsftpd',
case $ensure {
present,absent,file: {}
- default: { fail("Invalid ensure for '$title'") }
+ default: { fail("Invalid ensure for '$name'") }
}
if $ferm {
- @ferm::rule { "dsa-xinetd-${title}":
+ @ferm::rule { "dsa-xinetd-${name}":
description => "Allow traffic to ${port}",
rule => "&SERVICE(${protocol}, ${port})"
}
}
- file { "/etc/xinetd.d/${title}.conf":
+ file { "/etc/xinetd.d/${name}.conf":
ensure => $ensure,
noop => true,
content => template('xinetd/service.erb'),