aboutsummaryrefslogtreecommitdiff
path: root/manifests/file.pp
diff options
context:
space:
mode:
authorNan Liu <nan@puppetlabs.com>2012-06-25 13:43:26 -0700
committerNan Liu <nan@puppetlabs.com>2012-06-25 14:34:15 -0700
commit600754c8d841646c73df3e0fe5d4290e8ddfd37d (patch)
tree3ae144a5eaba9b35376c81d802a918f16c2b689f /manifests/file.pp
parenta45261555e1b70fc041fc001b4d4c1d18693ccc1 (diff)
downloadpuppet-tftp-600754c8d841646c73df3e0fe5d4290e8ddfd37d.tar.gz
puppet-tftp-600754c8d841646c73df3e0fe5d4290e8ddfd37d.tar.bz2
Update documentation and README.
Diffstat (limited to 'manifests/file.pp')
-rw-r--r--manifests/file.pp21
1 files changed, 20 insertions, 1 deletions
diff --git a/manifests/file.pp b/manifests/file.pp
index b3985c7..3628188 100644
--- a/manifests/file.pp
+++ b/manifests/file.pp
@@ -2,12 +2,31 @@
#
# 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, defaults to puppet*]:///module/${caller_module_name}/${name} for files without content.
+# [*recurse*]: directory recurse, default false.
+# [*purge*]: directory recurse and purge.
+# [*replace*]: replace directory with file or symlink, default undef,
+# [*recurselimit*]: directory recurse limit, default undef,
+#
# Actions:
#
-# Requires:
+# Deploy files into the tftp directory.
#
# Usage:
#
+# tftp::file { 'pxelinux.0':
+# source => 'puppet:///modules/acme/pxelinux.0',
+# }
+#
+# tftp::file { 'pxelinux.cfg':
+# ensure => directory,
+# }
+#
define tftp::file (
$ensure = file,
$owner = 'tftp',