On 2015-08-03 20:27, Bostjan Skufca wrote:
Hi all,

this change I have not yet implemented, but I believe it might be nice
to have.

Currently in environment.conf we can specify modulepath with relative or
absolute paths to module directories, like this:
modulepath = modules/:/some/other/location/env_name/
manifest = /path/to/env_name/manifest2/

It would be splendid if we could define modulepath paths with
$environment as variable part of path, like this:
modulepath = /path/to/$environment/modules
manifest = /path/to/$environment/manifest2/

Would there be any interest for this feature?
If this is implemented for modulepath setting, maybe it should be
appropriate to implement it for manifest setting too?


This scares me a bit. It looks like it has potential to open the can of worms known as dynamic environments we managed to put the lid on with directory environments. Will have to discuss if this can used to do harmful things. If allowed it could only be allowed inside an absolute path.

Will see what Joshua Partlow has to say as well.

- henrik

b.


PS: Explanation why I find this useful, or from which use case I derived
it would be useful:
I have two puppets running on each system. Primary is for managing whole
system + secondary puppet, and secondary puppet is just for managing
primary puppet. This is useful for puppet upgrades - if something goes
wrong, secondary puppet still works and fixes primary puppet if
required, and vice versa.
For these two I use the same module repository (each puppet has own
module though) and I find it convenient to not have to clone module
repository for the second time, for each environment.

--
You received this message because you are subscribed to the Google
Groups "Puppet Developers" 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-dev/d32b2c66-4dd2-4bf7-b0d7-05194b65dde4%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-dev/d32b2c66-4dd2-4bf7-b0d7-05194b65dde4%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 
Developers" 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-dev/mdk6f4%24fjt%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to