$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
This commit is contained in:
Jamie McClelland 2011-03-24 11:58:06 -04:00
parent a81984c77e
commit 3ac7106d38

View file

@ -14,7 +14,7 @@
define module_file ( define module_file (
$source, $source,
$ensure = present, $ensure = present,
$alias = undef, $m_alias = undef,
$mode = 0644, $owner = root, $group = 0 $mode = 0644, $owner = root, $group = 0
) )
{ {
@ -23,7 +23,7 @@ define module_file (
"${common::moduledir::module_dir_path}/${name}": "${common::moduledir::module_dir_path}/${name}":
source => $source, source => $source,
ensure => $ensure, ensure => $ensure,
alias => $alias, alias => $m_alias,
mode => $mode, owner => $owner, group => $group; mode => $mode, owner => $owner, group => $group;
} }
} }
@ -32,14 +32,14 @@ define module_file (
define modules_file ( define modules_file (
$source, $source,
$ensure = present, $ensure = present,
$alias = undef, $m_alias = undef,
$mode = 0644, $owner = root, $group = 0 $mode = 0644, $owner = root, $group = 0
) )
{ {
module_file { $name: module_file { $name:
source => $source, source => $source,
ensure => $ensure, ensure => $ensure,
alias => $alias, alias => $m_alias,
mode => $mode, owner => $owner, group => $group mode => $mode, owner => $owner, group => $group
} }
} }