Remember that a puppet manifest is not a script. You are simply
making an unordered list of resources to apply to a host. With that
in mind, a "break" statement just doesn't make sense.
I do feel your pain, though, and have struggled with the same issue
myself. It feels wrong to have most of th
On Thu, Oct 10, 2013 at 11:13 AM, Jay wrote:
> I'm looking for something like a "break" statement, which should not
> proceed execution of following resources.
>
>
Oh! The built-in fail() function will stop catalog compilation full-stop
and fail with a parse error. If what you're looking for is t
Thanks Ryan!
I'm looking for something like a "break" statement, which should not
proceed execution of following resources.
Anyway thanks for the information about future parser. Appreciate your time
in answering my question.
Thanks,
jay
On Oct 10, 2013 11:57 AM, "Ryan Coleman" wrote:
> Hi
Hi Jay,
You could simplify things a little using 'unless' which acts like the
reverse of 'if'. You'd place your resources within the unless block so that
they'd only be included in your catalog if your Fact or variable evaluated
to false.
http://docs.puppetlabs.com/puppet/3/reference/lang_conditio
Hi,
I have a puppet module with more than 15 blocks of resources.. based on a
validation I want puppet to decide to continue next blocks or skip with a
warning(with out failing).
currently I am doing this with a big if block.
class mymodule {
if $::flag_enabled {
package {...}
files