document changes in module_dir usage
This commit is contained in:
parent
f3dde9f52a
commit
109311524e
1 changed files with 6 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue