diff options
author | Jamie McClelland <jm@mayfirst.org> | 2011-03-24 11:58:06 -0400 |
---|---|---|
committer | Jamie McClelland <jm@mayfirst.org> | 2011-03-24 11:58:06 -0400 |
commit | 3ac7106d38966452757d10dcff0f84c6e0a90409 (patch) | |
tree | bc3049137add214a12542efbd09faad067d5a15c | |
parent | a81984c77ed1efb56e978d8b5050b6c3ec409d80 (diff) | |
download | puppet-common-3ac7106d38966452757d10dcff0f84c6e0a90409.tar.gz puppet-common-3ac7106d38966452757d10dcff0f84c6e0a90409.tar.bz2 |
$alias is a metaparam - using it as a variable name results in:
remote: warning: alias is a metaparam; this value will inherit to all contained resources
When running puppet with --verbose
-rw-r--r-- | manifests/defines/module_file.pp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/defines/module_file.pp b/manifests/defines/module_file.pp index 43b3c48..44f3968 100644 --- a/manifests/defines/module_file.pp +++ b/manifests/defines/module_file.pp @@ -14,7 +14,7 @@ define module_file ( $source, $ensure = present, - $alias = undef, + $m_alias = undef, $mode = 0644, $owner = root, $group = 0 ) { @@ -23,7 +23,7 @@ define module_file ( "${common::moduledir::module_dir_path}/${name}": source => $source, ensure => $ensure, - alias => $alias, + alias => $m_alias, mode => $mode, owner => $owner, group => $group; } } @@ -32,14 +32,14 @@ define module_file ( define modules_file ( $source, $ensure = present, - $alias = undef, + $m_alias = undef, $mode = 0644, $owner = root, $group = 0 ) { module_file { $name: source => $source, ensure => $ensure, - alias => $alias, + alias => $m_alias, mode => $mode, owner => $owner, group => $group } } |