puppet-tftp/manifests/config.pp @ 570e8e3f
0abdc8c6 | Ohad Levy | class tftp::config {
|
|
5a3e04a0 | Jim Perrin | ||
570e8e3f | Greg Sutcliffe | case $tftp::params::daemon {
|
|
true: { } # not needed for daemon-mode
|
|||
false: {
|
|||
include xinetd
|
|||
file {'/etc/xinetd.d/tftp':
|
|||
content => template('tftp/xinetd-tftp'),
|
|||
mode => '0644',
|
|||
require => [Class['tftp::install'], Class['xinetd::install']],
|
|||
notify => Class['xinetd::service']
|
|||
}
|
|||
file {'/etc/tftpd.map':
|
|||
content => template('tftp/tftpd.map'),
|
|||
mode => '0644',
|
|||
require => [Class['tftp::install'], Class['xinetd::install']],
|
|||
notify => Class['xinetd::service']
|
|||
}
|
|||
b672a3a5 | Ohad Levy | ||
570e8e3f | Greg Sutcliffe | file { $tftp::params::root:
|
|
ensure => directory,
|
|||
notify => Class['xinetd::service'],
|
|||
}
|
|||
}
|
|||
b672a3a5 | Ohad Levy | }
|
|
0abdc8c6 | Ohad Levy | }
|