Revision 56276e2d
Added by Ewoud Kohl van Wijngaarden over 5 years ago
data/common.yaml | ||
---|---|---|
---
|
||
tftp::manage_root_dir: true
|
||
tftp::map_source: puppet:///modules/tftp/tftpd.map
|
manifests/config.pp | ||
---|---|---|
}
|
||
|
||
file {'/etc/tftpd.map':
|
||
source => "puppet:///modules/${module_name}/tftpd.map",
|
||
source => $tftp::map_source,
|
||
mode => '0644',
|
||
show_diff => false, # Puppet explodes with 'Error: invalid byte sequence in UTF-8' when trying to display the diff
|
||
notify => Class['xinetd'],
|
manifests/init.pp | ||
---|---|---|
# @param syslinux_package Name of the syslinux package, essential for pxe boot
|
||
# @param daemon Runs a TFTP service when true, configures xinetd when false
|
||
# @param manage_root_dir manages the root dir, which tftpd will serve, defaults to true
|
||
# @param map_source The source URL of the mapping file
|
||
# @param service Name of the TFTP service, when daemon is true
|
||
# @param service_provider Override TFTP service provider, when daemon is true
|
||
class tftp (
|
||
... | ... | |
Variant[String, Array[String]] $syslinux_package,
|
||
Boolean $daemon,
|
||
Boolean $manage_root_dir,
|
||
String $map_source,
|
||
Optional[String] $service = undef,
|
||
Optional[String] $service_provider = undef,
|
||
) {
|
Also available in: Unified diff
Fixes #25190 - Allow overriding the tftp map source