Ask Your Question

Could not find class after fresh generation of class

asked 2014-09-16 08:57:28 -0600

syss gravatar image

I have Puppet 3.7.0 installed

puppet -V

I am in Modules path


My config

puppet config print modulepath

I generate a test module (and skipped all questions)

puppet module generate test-test

Applying the class

puppet apply test-test/manifests/init.pp 
Notice: Compiled catalog for NODE in environment production in 0.02 seconds

Applying the tests/init.pp fails

puppet apply test-test/tests/init.pp 
Error: Could not find class test for NODE on node NODE
Error: Could not find class test for NODE on node NODE

What could be the solution to this problem? Maybe I need a fresh install?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-09-17 07:23:12 -0600

llowder gravatar image

Rename the module's directory from test-test to test.

puppet module generate generates the module in the format that the Puppet Forge wants, but this is a format that puppet itself cannot use.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-09-16 08:57:28 -0600

Seen: 884 times

Last updated: Sep 17 '14