aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorThomas Van Doren <thomas.vandoren@gmail.com>2012-06-04 20:45:19 -0700
committerThomas Van Doren <thomas.vandoren@gmail.com>2012-06-04 20:45:19 -0700
commit1343de3817ab64b39ccf4d76ab73f1024f3db0a7 (patch)
treed3af56dbabf6e01b192710508e68cd9d0d409aa7 /manifests
parent097a1ae83a3f43b639eb3608d3ae83aa33f7b43e (diff)
downloadpuppet-tftp-1343de3817ab64b39ccf4d76ab73f1024f3db0a7.tar.gz
puppet-tftp-1343de3817ab64b39ccf4d76ab73f1024f3db0a7.tar.bz2
Add recurse option to tftp::file class.
Update rspec tests to assert the value of recurse in various cases.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/file.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/manifests/file.pp b/manifests/file.pp
index 72c9ebd..db62c87 100644
--- a/manifests/file.pp
+++ b/manifests/file.pp
@@ -10,6 +10,7 @@
#
define tftp::file (
$ensure = file,
+ $recurse = false,
$owner = 'tftp',
$group = 'tftp',
$mode = '0644',
@@ -20,6 +21,7 @@ define tftp::file (
file { "${tftp::directory}/${name}":
ensure => $ensure,
+ recurse => $recurse,
owner => $owner,
group => $group,
mode => $mode,