Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (25 sloc) 554 Bytes
#
# xinetd daemon
#
class xinetd (
$ensure = running
) {
package { 'xinetd':
ensure => present,
}
service { 'xinetd':
ensure => $ensure,
enable => true,
hasrestart => true,
restart => '/usr/sbin/service xinetd restart',
hasstatus => true,
status => '/usr/sbin/service xinetd status',
require => Package['xinetd'],
}
file { '/etc/xinetd.conf':
ensure => present,
mode => '0644',
source => 'puppet:///modules/xinetd/etc/xinetd.conf',
notify => Service['xinetd'],
}
}