case $ensure {
present,file: {
include xinetd
+ file { "/etc/xinetd.d/${name}":
+ ensure => $ensure,
+ content => template('xinetd/service.erb'),
+ notify => Service['xinetd'],
+ require => Package['xinetd'],
+ }
+ }
+ absent: {
+ file { "/etc/xinetd.d/${name}":
+ ensure => $ensure,
+ }
}
- absent: {}
default: { fail("Invalid ensure for '$name'") }
}
rule => "&SERVICE(${protocol}, ${fermport})"
}
}
-
- file { "/etc/xinetd.d/${name}":
- ensure => $ensure,
- content => template('xinetd/service.erb'),
- notify => Service['xinetd'],
- require => Package['xinetd'],
- }
}