Something like this probably is not your case:
if defined(monit) {
...
} else {
...
}
BUT you can face your problem from a different perspecitve:
include monit::god in your monit master node
include apache2 and monit in monit::god (o include apache2 and
inherit monit)
Regard,
al
LeonB ha scritto:
> Hi all,
>
> Is there some way to check if a class is included? I''d like to do
the
> following:
> if apache2 AND monit are included in the node, also include monit::god
>
> I''ve tried something like:
> if Class[''monit''] {
> }
>
> but that always compiles to true.
> I''ve thought about setting variables. But that doesn''t
seem like a
> nice option to me.
>
> Thanks in advance!
>
> Leon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to
puppet-users-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---