apply seams to ignore modulepath
I have a strange problem that used to work and I can't remember changing anything besides upgrading to newer versions of puppet. I use puppet 3.7.2 now. And the config and everything looks ok to me.
Here is what happens: When I execute: sudo puppet apply -e "include mod::manifest"
I get an Error: Error: Could not find class mod::manifest for .....
When I give a modulepath, everything works fine: sudo puppet apply --modulepath /puppet/modules -e "include mod::manifest"
But the same modulepath is also configured in my environment. Here are the config files:
environmentpath = $confdir/environments
sudo puppet config print | grep module
modulerepository = https://forgeapi.puppetlabs.com
moduleworkingdir = /var/lib/puppet/puppet-module
moduleskeletondir = /var/lib/puppet/puppet-module/skeleton
basemodulepath = /etc/puppet/modules:/usr/share/puppet/modules
modulepath = /puppet/modules
Any ideas what is going wrong? Like I said, I'm pretty sure this used to work a while ago. Maybe a few month at the most.