I'm setting up a Puppet master server for the first time. It's configured to use environments:
/etc/puppet/puppet.conf:
[main]
environmentpath = /var/opt/puppet/environments
basemodulepath = /var/opt/puppet/modules
Whenever I install a module, puppet module install foo
, it get installed into my "production" environment's module directory. What I want to happen is for the module to be installed to /var/opt/puppet/modules
unless I specify an environment with the --environment
switch.
How do I do that?