The following would work:
class a {
if $x { notify "yeah!" }
}
node base {
$x = true
}
node test inherits base {
include a
}
On Nov 29, 12:21 pm, walexey <[email protected]> wrote:
> puppet 2.6.3
>
> How i can make this work?
>
> class a {
> if ($b::x) { notify "yeah!" }
>
> }
>
> class b {
> $x=true
>
> }
>
> node base {
> include a
>
> }
>
> node test inherits base {
> include b
>
> }
>
> currently i got "Could not look up qualified variable 'b::x'; class b
> has not been evaluated"
--
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.