While setting up some cluster machines to run masterless I ran into this bug. I had a directory structure like this:
code module1 manifests module2 modules module3 manifests
When running puppet apply with the modulepath code:code/module1/modules I ran into this error, specifically using the logrotate module.
Error: Evaluation Error: Resource type not found Logrotate::Size (file: code/modules/logrotate/manifests/conf.pp, line: 32, column:12)