aboutsummaryrefslogtreecommitdiff
path: root/manifests/params.pp
blob: e6581840a7846fb3888b194a374afbfe2e725c7a (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
# Class: tftp::params
#
#   TFTP class parameters.
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
    }
  }
}