Hi all,
is there any problem in creating a parameterized class of parameterized
classes?
something like:
class A ($var1,$var2,$var3) {
class { 'B' :
param => ${var1} ;
'C' :
param => ${var2} ;
'D' :
param => ${var3} ;
}
}
node "Z" {
class { 'A' :
var1 => 'value1',
var2 => 'value2',
var3 => 'value3',
}
}
This is working fine in my test set (2.7.3), but I'm wondering if this
could cause issues in any way (most probably scope), or there's a
better way for grouping several classes into one (avoiding inheritance).
TIA,
Arnau
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.