When including a role in the site.pp file, I get the error "Could not find class roles::developmentmachine"
In my site.pp I have:
node 'laraveldev2-VirtualBox.local' {
include roles::developmentmachine
}
In my modules folder (/etc/puppetlabs/code/environments/production/modules) I have a roles folder.
Partial tree for modules folder:
└── roles ├── developmentmachine │ └── init.pp └── init.pp
The developmentmachine/init.pp has:
class roles::developmentmachine {
# Code here
}
I have checked the module path and it is correct (as given above).
To my knowledge, writing include roles::developmentmachine says "include a class in the roles folder, inside the modules folder, called developmentmachine" so this should be fine.
If anyone sees a problem with this or has a suggestion, please let me know.
Many thanks