On Tue, Mar 4, 2014 at 3:36 PM, jcbollinger <[email protected]>wrote:

>
>
> On Tuesday, March 4, 2014 1:30:44 AM UTC-6, Jose Luis Ledesma wrote:
>>
>> Although it is not incorrect, you should not bypass class boundaries, so
>> it's better:
>>
>> require=>Class['munin::install']
>>
>
> Well, that's one school of thought.  Personally, I don't have any problem
> with cross-class relationships within the same module, as the OP's appears
> to be.  In fact, I'd be willing to accept any cross-class relationship at
> all, provided that the class and module of the relationship target
> *document* the target as being declared by the module and available for
> such use.  (But no one does that.)
>
>
>

    Perhaps it is, but I found it very useful when in the install class you
have to install more than one package, if you set up the require against
the install Class you don't have to care anymore about it.


> And usually you may include the diferent classes for a module in init.pp
>> chaining them there.
>>
>
>
> Yes, that's a common approach, though one should be clear that it's not
> simply init.pp where the class and relationship declarations reside in that
> case.  Rather, such declarations would go in a module main class (in this
> case, Class['munin']) within init.pp.  Also, that class needs to be
> declared in that case.  Its mere existence is not sufficient.
>
> Anyway, there should be no declarations in any init.pp but outside any
> class, definition, or node block.  In fact, that applies to almost every
> manifest anywhere in your manifest set.
>
>
> John
>
>  --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/9c5391f9-cca5-4b7c-b33f-f3cb488e305a%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
José Luis Ledesma

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAF_B3deMMGtZPubH0VBU3HE_%3D5gMtJUMhLVB%3Dd5K4_%2B0Bzn%3D2g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to