Thanks John, that clears it up very well.
On Feb 19, 2016 9:14 AM, "jcbollinger" <john.bollin...@stjude.org> wrote:

>
>
> On Thursday, February 18, 2016 at 2:52:07 PM UTC-6, Warron French wrote:
>>
>> JCBollinger, in my training classes over the last 3 years, we always
>> wrote modules with a single init.pp; that's why I am surprised.
>>
>>
>
> Training classes typically use small problems for their examples, and they
> often try to minimize complexity in other ways as well.  Nevertheless, if
> your classes gave you the impression that there was something inherently
> right about putting all your module code into init.pp, and especially if
> they taught you that using multiple manifest files was poor form, then I
> suggest you take everything else they taught you with a grain of salt.  Why
> did you think the module layout provides a whole directory for manifests if
> you were expected to use only one file?
>
> The prevailing convention is to put each class and each defined type in
> its own manifest file, named and laid out according the class / type
> names.  Puppet can accommodate some other layouts -- including putting
> everything in init.pp -- but I almost never see anyone use other layouts in
> practice.  Of course, you may have the alternative of writing your whole
> module as a single class, and if you do that then you cannot use more than
> one manifest file.  But it is usually better form to use multiple classes,
> for many of the same reasons that programs in procedural programming
> languages are normally implemented in terms of multiple functions.
>
>
> 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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/fff8d2d0-6da7-4f0f-8bf3-5f0520ceeb24%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/fff8d2d0-6da7-4f0f-8bf3-5f0520ceeb24%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAJdJdQmnOQDkh9z8OT90ifBJ33wjvXADKYcWK99smahtUwZdKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to