Hi,

On 03/20/2013 01:37 PM, Kubes wrote:
> I am using puppet 3.1.1 and I need to know if a class has been defined.
>  I have tried defined() and tagged(), but neither seem to work.  They
> either return true when the class was not include for that node or false

please don't. You're making yourself parse order dependent and that
*will* bite you at some point down the road. Do not even try.

You may get away with declaring a subclass instead, and have class
mysql::service include that subclass in order to achieve the necessary
modification.

Otherwise, your best choice is probably external data, as in hiera.

That being said:

> when it is included.  #My understand is NOT to use Class['mysql::service']

How have you come to understand this? I would have thought that Class[]
is fine.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to