Signed-off-by: Stephen Gran <steve@lobefin.net>
$fname = "/etc/vsftpd-${name}.conf"
+ $noop = $::hostname ? {
+ villa => false,
+ default => true
+ }
+
if $source {
file { $fname:
ensure => $ensure,
- noop => true,
+ noop => $noop,
source => $source,
}
} elsif $content {
file { $fname:
ensure => $ensure,
- noop => true,
+ noop => $noop,
content => $content,
}
} else {
) {
include xinetd
+ $noop = $::hostname ? {
+ villa => false,
+ default => true
+ }
+
case $ensure {
present,absent,file: {}
default: { fail("Invalid ensure for '$name'") }
file { "/etc/xinetd.d/${name}":
ensure => $ensure,
- noop => true,
+ noop => $noop,
content => template('xinetd/service.erb'),
notify => Service['xinetd'],
require => Package['xinetd'],