Project

General

Profile

« Previous | Next » 

Revision b672a3a5

Added by Ohad Levy over 12 years ago

added params class to tftp

View differences:

manifests/config.pp
require => [Class["tftp::install"], Class["xinetd::install"]],
notify => Class["xinetd::service"]
}
file { $tftp::params::root:
ensure => directory,
notify => Class["xinetd::service"],
}
}
manifests/init.pp
class tftp {
include xinetd
include tftp::params
include tftp::install
include tftp::config
}
manifests/params.pp
class tftp::params {
$root = "/tftpboot"
}
templates/xinetd-tftp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -v -s <%= tftp_dir rescue "/tftpboot" %>
server_args = -v -s <%= scope.lookupvar("tftp::params::root") %>
disable = no
per_source = 11
cps = 100 2

Also available in: Unified diff