Environment with multiple subdirectories

33 views
Skip to first unread message

han...@nd.edu

unread,
Feb 17, 2015, 11:56:10 AM2/17/15
to puppet...@googlegroups.com
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?

Thanks,
Tom

Henrik Lindberg

unread,
Feb 18, 2015, 7:45:19 AM2/18/15
to puppet...@googlegroups.com
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 puppet-users...@googlegroups.com
> <mailto:puppet-users...@googlegroups.com>.
> 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/

Reply all
Reply to author
Forward
0 new messages