We are using PE 3.7.2 with r10k, so I don't know how specifically useful 
this will be, but PE requires the use of basemodulepath.

https://docs.puppetlabs.com/puppet/latest/reference/config_file_environment.html

puppet.conf on master:
[main]
    basemodulepath = 
/etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules
    environmentpath = /etc/puppetlabs/puppet/environments

In /etc/puppetlabs/puppet/environment/<env_name/environment.conf:
modulepath = site:modules:$basemodulepath
config_version = /usr/bin/git 
--git-dir=$confdir/environments/$environment/.git rev-parse --short HEAD
environment_timeout = 0

I know this isn't a direct suggestion, but maybe it will point you towards 
something that helps.  Good luck!


On Wednesday, May 13, 2015 at 9:43:22 AM UTC-4, Jim Miller wrote:
>
> Done anyone have any thoughts on this?
>
>
>
> On Friday, May 8, 2015 at 2:23:27 PM UTC-5, Jim Miller wrote:
>>
>> Hi all,
>>
>> Just upgraded from 3.4.something to 3.7.5 and it seems how we were doing 
>> environments is depreciated.  I've followed a couple of docs* for how to do 
>> this but seem to be missing something. Nodes can't seem to find modules.  
>> For now it's not a big deal because it's just a warning but I'd like to 
>> address the issue.
>>
>> *http://docs.puppetlabs.com/puppet/latest/reference/environments.html 
>> (and linked docs)
>>
>> Here's the old config values in /etc/puppet/puppet.conf for environments:
>>
>> [main]
>> ....
>> ....
>>     modulepath = /etc/puppet/modules
>> ...
>> ...
>> ...
>>     environment = production
>>     confdir = /etc/puppet
>>
>> [production]
>>     manifest = $confdir/manifests/site.pp
>>     modulepath = 
>> $confdir/environments/production/modules:$confdir/environments/test/site/modules
>>
>> [test]
>>     manifest = $confdir/manifests/non-prod_site.pp
>>     modulepath = 
>> $confdir/environments/test/modules:$confdir/environments/test/site/modules
>>
>> [development]
>>     manifest = $confdir/manifests/non-prod_site.pp
>>     modulepath = 
>> $confdir/environments/dev/modules:$confdir/environments/dev/site/modules
>>
>>
>>
>> PROPOSED:
>> [main]
>> ....
>> ....
>>     # modulepath = /etc/puppet/modules
>>     environmentpath = $confdir/environments
>>     default_manifest = /etc/puppet/manifests/site.pp
>> ...
>> ...
>> ...
>>     # environment = production
>>     confdir = /etc/puppet
>>
>> # [production]
>> #     manifest = $confdir/manifests/site.pp
>> #     modulepath = 
>> $confdir/environments/production/modules:$confdir/environments/test/site/modules
>>
>> # [test]
>> #    manifest = $confdir/manifests/non-prod_site.pp
>> #    modulepath = 
>> $confdir/environments/test/modules:$confdir/environments/test/site/modules
>>
>> # [development]
>> #     manifest = $confdir/manifests/non-prod_site.pp
>> #     modulepath = 
>> $confdir/environments/dev/modules:$confdir/environments/dev/site/modules
>>
>>
>> Environments.conf
>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> Environments.conf for production:
>> manifest = $confdir/manifests/site.pp
>> modulepath = 
>> $confdir/environments/production/modules:$confdir/puppet/environments/production/site
>>
>> Environments.conf for testing:
>> manifest = $confdir/manifests/non-prod_site.pp
>> modulepath = 
>> $confdir/environments/test/modules:$confdir/environments/test/site/modules
>>
>> Environments.conf for dev:
>> manifest = $confdir/manifests/non-prod_site.pp
>> modulepath = 
>> $confdir/environments/dev/modules:$confdir/environments/dev/site/modules
>>
>>
>> Nodes .pp settings for each environment
>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> $puppet_env = "production"
>>
>> $puppet_env = "test"
>>
>> $puppet_env = "development"
>>
>>
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/2fcd445d-4ccc-4f00-8405-4ce10ba22ae0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to