Thanks for the response.

On Wednesday, March 20, 2013 8:43:00 AM UTC-4, Felix.Frank wrote:
>
> 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. 
>
> I was checking for a subclass "mysql::service"
 

> Otherwise, your best choice is probably external data, as in hiera. 
>
Thanks, but I dont understand how heira solve the issues, can you please 
elaborator a bit for me?  I an using heira for storing my user info, but I 
dont know how to use it to handle if a node is a db server, etc?
 

>
> 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. 
>

Via post on this group and the documentation.   Using Resource[] is only 
needed for resource refferences, as I understand it.
http://docs.puppetlabs.com/references/latest/function.html#defined
 

-- 
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