Perhaps read about modules? if you specify a class name (apache, 
apache::vhosts) that class is automatically loaded from the relevant module. 
Just like putting stuff directly in node definitions has correctly gone out of 
style, so has defining classes/defines outside of modules.

http://docs.puppetlabs.com/learning/modules1.html

http://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html

On Mon, Jun 23, 2014 at 07:05:28AM -0400, Ben Ruset wrote:
>    Ah, okay this makes more sense for me. So I know that I can stick this in
>    the same file with the node definitions, but there's got to be a better
>    place for it to go. Where would the "proper" place be for it to go?
>    Many thanks for your responses. They've been very helpful.
> 
>    On Sun, Jun 22, 2014 at 9:52 PM, Christopher Wood
>    <[1]christopher_w...@pobox.com> wrote:
> 
>      Before hiera you might have a define specifying what a vhost is, and
>      then have a class with the defines all listed. You would include that
>      class in your node definition, ensuring that this class was applied
>      after the basic apache class. Sometimes people would put the defines
>      right in the node, but putting stuff directly in the node got
>      discouraged over time. It's basically what you did but having the
>      defines in a class rather than in the node.
> 
>    <snip> 
> 
>    --
>    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 [2]puppet-users+unsubscr...@googlegroups.com.
>    To view this discussion on the web visit
>    
> [3]https://groups.google.com/d/msgid/puppet-users/CADBQ%3DdaY4NX3c%2ByKX_WzHQX5AfwHVbvs9kpPJwh2-ZMkBu8Rmw%40mail.gmail.com.
>    For more options, visit [4]https://groups.google.com/d/optout.
> 
> References
> 
>    Visible links
>    1. mailto:christopher_w...@pobox.com
>    2. mailto:puppet-users+unsubscr...@googlegroups.com
>    3. 
> https://groups.google.com/d/msgid/puppet-users/CADBQ%3DdaY4NX3c%2ByKX_WzHQX5AfwHVbvs9kpPJwh2-ZMkBu8Rmw%40mail.gmail.com?utm_medium=email&utm_source=footer
>    4. 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/20140623175306.GA18961%40iniquitous.heresiarch.ca.
For more options, visit https://groups.google.com/d/optout.

Reply via email to