diff options
author | Nan Liu <nan@puppetlabs.com> | 2012-04-05 13:42:52 -0700 |
---|---|---|
committer | Nan Liu <nan@puppetlabs.com> | 2012-04-05 13:42:52 -0700 |
commit | 89282064ac8de35a5154a80eedc5f7f2d8c5ba8a (patch) | |
tree | 9496a01faa9686b6348a6b09cf42187091c787e7 /README.md | |
download | puppet-tftp-89282064ac8de35a5154a80eedc5f7f2d8c5ba8a.tar.gz puppet-tftp-89282064ac8de35a5154a80eedc5f7f2d8c5ba8a.tar.bz2 |
Initial commit.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..4bdd512 --- /dev/null +++ b/README.md @@ -0,0 +1,73 @@ +# puppet-tftp module + +## Overview + +Install tftp-hpa package and configuration files for osfamily Debian. + +## Usage + +### class tftp + +Parameters: + +* username: tftp daemon user, default tftp. +* directory: service directory, deafult see params class. +* address: bind address, default 0.0.0.0. +* port: bind port, default 69. +* options: service option, default --secure. + + class tftp { + directory => '/opt/tftp', + address => $::ipaddress, + options => '--secure --ipv6 --timeout 60', + } + +### tftp::file + +Parameters: + +* ensure: file type, default file. +* owner: file owner, default tftp. +* group: file group. default tftp. +* mode: file mode, default 0644 (puppet will change to 0755 for directories). +* content: file content. +* source: file source. + + tftp::file { 'pxelinux.0': + source => 'puppet:///modules/acme/pxelinux.0', + } + + tftp::file { 'pxelinux.cfg': + ensure => directory, + } + + tftp::file { 'pxelinux.cfg/default': + source => 'puppet:///modules/acme/default', + } + +## Example + +1. tftp directories not in the OS package defaults should be managed as file resources. +2. customization for the class tftp must be declared before using tftp::file resources. + + file { '/opt/tftp': + ensure => directory, + } + + class { 'tftp': + directory => '/opt/tftp', + address => $::ipaddress, + } + + tftp::file { 'pxelinux.0': + source => 'puppet:///modules/acme/pxelinux.0', + } + +The examples use a module acme and the tftp files should be placed in calling module path i.e. (/etc/puppet/modules/acme/files). + +## Supported Platforms + +The module have been tested on the following operating systems. Testing and patches for other platforms are welcomed. + +Debian Wheezy +Ubuntu Oneiric |