Project

General

Profile

Download (758 Bytes) Statistics
| Branch: | Tag: | Revision:
# Configure TFTP
class tftp::config {

case $tftp::params::daemon {
default: { } # not needed for daemon-mode
false: {
include xinetd

xinetd::service { 'tftp':
port => '69',
server => '/usr/sbin/in.tftpd',
server_args => "-v -s ${tftp::params::root} -m /etc/tftpd.map",
socket_type => 'dgram',
protocol => 'udp',
cps => '100 2',
flags => 'IPv4',
per_source => '11',
}

file {'/etc/tftpd.map':
content => template('tftp/tftpd.map'),
mode => '0644',
notify => Class['xinetd']
}

file { $tftp::params::root:
ensure => directory,
notify => Class['xinetd'],
}
}
}
}
(1-1/5)