puppet-tftp/manifests/params.pp @ c8bc8ea6
c8bc8ea6 | Ewoud Kohl van Wijngaarden | # TFTP defaults
|
|
b672a3a5 | Ohad Levy | class tftp::params {
|
|
8ed1e16b | Byron Miller | case $::osfamily {
|
|
570e8e3f | Greg Sutcliffe | Debian: {
|
|
710e20bb | Ewoud Kohl van Wijngaarden | $package = 'tftpd-hpa'
|
|
$daemon = true
|
|||
$service = 'tftpd-hpa'
|
|||
if $::operatingsystem == 'Ubuntu' {
|
|||
$root = '/var/lib/tftpboot/'
|
|||
} else {
|
|||
$root = '/srv/tftp'
|
|||
8ed1e16b | Byron Miller | }
|
|
92d8eb07 | Andy Edmonds | }
|
|
8ed1e16b | Byron Miller | RedHat: {
|
|
710e20bb | Ewoud Kohl van Wijngaarden | $package = 'tftp-server'
|
|
$daemon = false
|
|||
c1a1f64e | Dominic Cleal | if $::operatingsystemrelease =~ /^(4|5)/ {
|
|
$root = '/tftpboot/'
|
|||
} else {
|
|||
$root = '/var/lib/tftpboot/'
|
|||
}
|
|||
570e8e3f | Greg Sutcliffe | }
|
|
59b902d6 | Ewoud Kohl van Wijngaarden | Linux: {
|
|
case $::operatingsystem {
|
|||
Amazon: {
|
|||
$package = 'tftp-server'
|
|||
$daemon = false
|
|||
$root = '/var/lib/tftpboot/'
|
|||
}
|
|||
default: {
|
|||
fail("${::hostname}: This module does not support operatingsystem ${::operatingsystem}")
|
|||
}
|
|||
}
|
|||
}
|
|||
8ed1e16b | Byron Miller | default: {
|
|
710e20bb | Ewoud Kohl van Wijngaarden | fail("${::hostname}: This module does not support osfamily ${::osfamily}")
|
|
}
|
|||
570e8e3f | Greg Sutcliffe | }
|
|
b672a3a5 | Ohad Levy | }
|