blob: 564e0f203656f0cc7840d37cf6eadf047e330deb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Class: tftp::params
#
# Parameters:
#
# Actions:
#
# Requires:
#
# Usage:
#
class tftp::params {
$address = '0.0.0.0'
$port = '69'
$username = 'tftp'
$options = '--secure'
$inetd_conf = '/etc/inetd.conf'
case $::operatingsystem {
'debian': {
# hasstatus is to get around an issue where the service script appears to
# be broken.
$directory = '/srv/tftp'
$hasstatus = false
$provider = undef
}
'ubuntu': {
$directory = '/var/lib/tftpboot'
$hasstatus = true
$provider = 'upstart'
}
default: {
warning("tftp:: not verified on operatingsystem ${::operatingsystem}.")
$directory = '/var/lib/tftpboot'
$hasstatus = true
$provider = undef
}
}
}
|