aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2010-05-07 16:55:38 -0400
committerMicah Anderson <micah@riseup.net>2010-09-02 18:17:54 -0400
commit109311524e3d63bb082b40db4caa25d650202511 (patch)
tree4f29284c67b297f7d74231099a7a579604d8f051 /manifests
parentf3dde9f52a2d46f6ca949b87c3d6b15b90b4f6e4 (diff)
downloadpuppet-common-109311524e3d63bb082b40db4caa25d650202511.tar.gz
puppet-common-109311524e3d63bb082b40db4caa25d650202511.tar.bz2
document changes in module_dir usage
Diffstat (limited to 'manifests')
-rw-r--r--manifests/defines/modules_dir.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/defines/modules_dir.pp b/manifests/defines/modules_dir.pp
index c7cde5b..02398ea 100644
--- a/manifests/defines/modules_dir.pp
+++ b/manifests/defines/modules_dir.pp
@@ -5,12 +5,17 @@
# See LICENSE for the full license granted to you.
# Usage:
+# include common::moduledir
# modules_dir { ["common", "common/dir1", "common/dir2" ]: }
+#
+# You may refer to a file in module_dir by using :
+# file { "${common::moduledir::module_dir_path}/somedir/somefile": }
+
define modules_dir (
$mode = 0644, $owner = root, $group = 0
)
{
- include common::moduledir
+ include common::moduledir
$dir = "$common::moduledir::module_dir_path/${name}"
if defined(File[$dir]) {
debug("${dir} already defined")