Re: [Puppet Users] Module Directory Layout

2014-11-05 Thread Felix Frank
Hi,

so you'd like to sub-namespace modules? I don't think this would work.

Say you forced the contents of puppetlabs-apache into the
business_group_a subtree. You would then need to rename classes and
defines, e.g. apache -> business_group_a::apache and so forth.

What you are describing should actually be handled through distinct
environments. For example

/etcpuppetlabs/puppet/environments/business_group_a/group-modules
/etcpuppetlabs/puppet/environments/business_group_a/modules ->
../../production/modules

(Making sure that .../business_group_a/environment.conf sets
modulepath=modules:group-modules).

This would be a clunky way to allow "group modules" next to centrally
curated modules. But then, you probably want to look at r10k and its
tool chain to get better control over the environments.

HTH,
Felix

On 10/20/2014 06:52 PM, Derek McEachern wrote:
>
> I'm running PE 3.3.1 using directory environments. All our modules are
> in the/etc/puppetlabs/puppet/environments/production/modules directory.
>
> What I would really like to do is create a subdirectory under here
> where we allow other uses to put modules
>
> i.e.
> /etc/puppetlabs/puppet/environments/production/modules/business_group_a
> /etc/puppetlabs/puppet/environments/production/modules/business_group_b
>
> The thought is that business_group_a and business_group_b might both
> be managing a similar service, like apache, but each one has their own
> apache module. I would like them to be able to setup
>
> /etc/puppetlabs/puppet/environments/production/modules/business_group_a/apache/
> /etc/puppetlabs/puppet/environments/production/modules/business_group_b/apache/
>
> and based on roles and profiles assign the appropriate apache.
>
> Is this possible or are there better ways to accomplish this?
>
> Thanks,
> Derek

-- 
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/545A985B.8030002%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Module Directory Layout

2014-10-20 Thread Derek McEachern

I'm running PE 3.3.1 using directory environments. All our modules are in 
the /etc/puppetlabs/puppet/environments/production/modules directory.

What I would really like to do is create a subdirectory under here where we 
allow other uses to put modules

i.e.
/etc/puppetlabs/puppet/environments/production/modules/business_group_a
/etc/puppetlabs/puppet/environments/production/modules/business_group_b

The thought is that business_group_a and business_group_b might both be 
managing a similar service, like apache, but each one has their own apache 
module. I would like them to be able to setup

/etc/puppetlabs/puppet/environments/production/modules/business_group_a/apache/
/etc/puppetlabs/puppet/environments/production/modules/business_group_b/apache/

and based on roles and profiles assign the appropriate apache.

Is this possible or are there better ways to accomplish this?

Thanks,
Derek

-- 
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/cfa04749-99bd-48a1-b485-a16e3e779443%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.