Assume `environment = 'foo'` and `environmentdir = '/etc/puppet/envs'`

The problem is that some module directories will be `/etc/puppet/envs/foo/modules/site` and `/etc/puppet/envs/foo/module/dist` but then we might also have a "global" module directory like `/opt/puppet/share/puppet/modules` (for PE).

What value would `$modulepath` be to represent these locations?

My solution would be `modulepath = 'modules/site:modules/dist:/opt/puppet/share/puppet/modules'` and `manifest = 'manifests/site.pp'`.