We are trying to conditionalize what is required by a resource...
service { "xxx":
...
require => $bool-var ? {
true => [ list1 ],
false => [ list2 ],
}
}
But false always seems to get selected regardless of the value of bool-
var (true or false).
As a workaround, we did
if $bool-var {
$t = [ list1 ]
} else {
$t = [ list2 ]
}
service { ...
...
require => $t
}
...but prefer the previous more elegant declaration.
Is this a bug? Known? (we are running 2.6.8 and I did not see any
later release notes addressing this)
_Mike
--
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.