On Friday, July 12, 2013 11:21:09 AM UTC-7, [email protected] wrote:
>
> Say I have the following classes:
>
> foo
> foo::bar::one
> foo::bar::two
>
> Is there a way to declare all classes in the foo::bar namespace at once?
>


Not really, but you can have foo::bar look like:

class foo::bar {
  include foo::bar::one
  include foo::bar::two
  ...
  include foo::bar::eleventy
}
 
And then you only need to change a single place, and everywhere that needs 
it can just do "include foo::bar".

There are no automagic ways to do that, and having an automagic way to do 
it seems really dangerous and like a really bad idea to me.


> I would like a way to easily add resources to a namespace in a module by 
> just adding a proper file in modules/foo/bar/three.pp and then letting some 
> statement in class foo just declare the new foo::bar::three class without 
> my having to edit class foo and statically declare.
>
> Thanks for any info.   
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to