chancer
chancer

Reputation: 11

Can you choose between two classes in puppet

I have two classes in puppet and want to execute only one or the other.

Is this possible and if so how?

Thanks Guys

Upvotes: 0

Views: 29

Answers (1)

Felix Frank
Felix Frank

Reputation: 8223

Puppet will only consider contents of classes that are included in your manifest.

class good_stuff {
    ...
}

class break_stuff {
    ...
}

include good_stuff

The above code will only apply resources from within the good_stuff class, not break_stuff.

Upvotes: 1

Related Questions