On Nov 20, 1:53 pm, "russell.fulton" <russell.ful...@gmail.com> wrote:
> one question can you have more than one instance of a parameterised
> module?  I am guessing the answer is no.  I could not find an explicit
> answer in the docs.

I think you're asking about parameterized *classes*, as the Puppet
terminology goes.  The word "module" has a domain-specific meaning in
Puppet (http://docs.puppetlabs.com/guides/modules.html) that doesn't
involve parameterization as far as I am aware.

I don't recall off-hand whether a parameterized class can be included
multiple times with different parameters.  That's pretty much what
defines provide, however, and you already know about them.  Is there
something you'd like to do along those lines for which a define is
insufficient?

[...]

> Sorry, not sure what you mean by "explicitly import".

I mean using "import" statements.  At all.  If you organize your
manifests into Puppet modules and follow the conventions of (a) using
module names as namespaces for their classes and defines, and (b)
giving each class and define a like-named manifest file in its module,
then Puppet will find and load those manifests as needed,
automatically, without any import statements.  (See
http://docs.puppetlabs.com/guides/modules.html#module-lookup for
details).  In contrast to importing manifests explicitly, you could
consider that to be importing the relevant manifests implicitly.

> > 4) I'm curious why you need to generate your "$sensor_rule_categories"
> > hash externally.  There's nothing particularly wrong with doing that,
> > but it seems like it would limit your ability to expand your use of
> > Puppet.
>
> I have a management system that provisions the monitoring systems
> previously it did everything and I am now moving to get puppet to do
> the heavy lifting.  The idea is that I have all the meta data in
> puppet and my management system generates the files for puppet.  I
> want the files that the management system produces to be sand alone.
> i.e. I don't want to have the management system to have to insert
> stuff in the middle of init.pp.

[...]

Thanks for the explanation.  It sounds like an interesting setup.

> It has taken me about a month to get to this point but I am satisfied
> with what I have now (starting completely from scratch with puppet).
> There have been two complete reworks in that time.

If you're satisfied with what you've got then great.  I'm glad Puppet
is helping you out.


Cheers,

John

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

Reply via email to