Error 400 could not find class
A beginner environment with Puppet(3.8.4)+Apache(2.2.15)+Passenger on CentOS6.5 An agent run returns with (i'm ignoring the first Error about plugins)
Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve information from environment production source(s) puppet://puppetmaster/plugins Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class mediawiki at /etc/puppet/environments/production/manifests/nodes.pp:10 on node wikitest
This is sequence of installing the module:
$>sudo puppet module generate my-mediawiki --environment production $>sudo mv my-mediawiki mediawiki (just renaming the folder) $>sudo puppet module list /etc/puppet/modules (no modules installed) /usr/share/puppet/modules (no modules installed)
I have tried adding
environment.conf of the production environment and to the
puppet.conf as the first entry, but it doesn't seem to be looking there.
$confdir/environments/production/modules/mediawiki/manifests/init.pp has the empty class declaration.
$confdir/environments/production/nodes.pp has the class statements in both nodes and both have the same error.
I've already tried:
- Removing the module and trying again, with all the puppet service stopped/started etc
There are no spelling or quotation mark errors I've modified
metadata.jsonin the mediawiki folder to be same as folder name just in case that mattered, but no luck.
Certificates are fine, communication is fine. I have another class defined as resource within the
nodes.ppfile and that runs fine
Any help appreciated!