On 2015-17-02 17:56, [email protected] wrote:
I'm attempting to switch over from using configuration directories to
using environments.  Right now, we have various directories with puppet
classes and the puppet server might look in all directories for the
class it needs.  So, we have a modulepath which lists the places to look:

modulepath =
$confdir/modules:$confdir/modules/subdir1:$confdir/modules/subdir2:/global/commondir

I would like to migrate over to environments but would like to keep some
of the structure.  So, for instance, if I had a production environment,
I'd like to have that environment still have a set of subdirectories to
look in for classes.  I don't want to have to put all of my classes in
one big environment directory.

I've tried a number of ways to do this but in every case the clients no
longer can find the classes.  I've only been able to get environments
working if all classes end up directly in the
environment/production/modules directory.

How can I set things up to break up a single environment into multiple
directories?

The documentation is here; https://docs.puppetlabs.com/puppet/latest/reference/dirs_modulepath.html

Does that help?

- henrik

Thanks,
Tom

--
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]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/4b18ebc9-0474-405d-8e95-0e183a8924f1%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/4b18ebc9-0474-405d-8e95-0e183a8924f1%40googlegroups..com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/mc21fl%24otm%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to