Some people I work with actually give each Puppet environment its own $modulepath
, but also have the common $modulepath
.
Please find an example of this below:
[redis]
modulepath = /usr/share/puppet/modules:/etc/puppet/modules:/etc/puppet/environments/redis/modules/
manifest=/etc/puppet/environments/redis/manifests/site.pp
I'm not sure that this is wise, but I wanted to ask, "What is the right way to do this?"
I'm open to answers from the perspective of Puppet, and also from the perspective of configuration management in general.
It's actually pretty specific. If I need the Redis module for one environment, the statsd module for another, and an Apache module for all of them, can I handle this by setting module paths? Should I?