On Wed, Jul 30, 2008 at 9:13 PM, Trevor Vaughan <peiriannydd@gmail.com>
wrote:>
> Are module dependencies enforced in some way? If so, how do I link
> the dependencies?
>
> The problem is this:
>
> - I have a module A that requires module B to function
>
> Should I:
>
> 1) Combine the modules into one module and split out the classes
In my opinion its not an option, usually the modules that I use are
common to more than one module.
> 2) Use facts or variables to make sure the other module has been loaded
what do you mean by that? wouldn''t your module include the other one?
unless you are talking about if defined problems...
> 3) Something else ...
>
> Also, is there a way to have a class load only if another class is
> loaded (kind of the same question, but localized).
I''m using module auto load (class name until the :: is the same to the
module name).
this way, modules are loaded automatically when needed and there is no
need to import them.
Ohad
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---