Include just evaluates the class whereas a require creates a dependency:

http://docs.puppetlabs.com/references/stable/function.html#require

The difference is evident when the catalog needs to be applied. With
include you have evaluated its contents at the time of the include -
but any resources must be depended on explicitly after the include.
With a require - the dependency is created for you - but you have to
be careful and ensure that this is your desired result :-).

ken.

On Wed, Jun 15, 2011 at 2:57 AM, Larry Ludwig <[email protected]> wrote:
> On a related note to my last post, what is the difference between a require
> and an include of a class?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/9c4luY2KlDEJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>

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

Reply via email to