Project

General

Profile

Download (758 Bytes) Statistics
| Branch: | Tag: | Revision:
c8bc8ea6 Ewoud Kohl van Wijngaarden
# Configure TFTP
0abdc8c6 Ohad Levy
class tftp::config {
5a3e04a0 Jim Perrin
570e8e3f Greg Sutcliffe
case $tftp::params::daemon {
e4f041ca Ewoud Kohl van Wijngaarden
default: { } # not needed for daemon-mode
570e8e3f Greg Sutcliffe
false: {
include xinetd
ea6c5e55 Ashley Penney
710e20bb Ewoud Kohl van Wijngaarden
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',
}
570e8e3f Greg Sutcliffe
file {'/etc/tftpd.map':
content => template('tftp/tftpd.map'),
mode => '0644',
ea6c5e55 Ashley Penney
notify => Class['xinetd']
570e8e3f Greg Sutcliffe
}
b672a3a5 Ohad Levy
570e8e3f Greg Sutcliffe
file { $tftp::params::root:
ensure => directory,
ea6c5e55 Ashley Penney
notify => Class['xinetd'],
570e8e3f Greg Sutcliffe
}
}
b672a3a5 Ohad Levy
}
0abdc8c6 Ohad Levy
}