Ask Your Question
1

Could not find class after fresh generation of class

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

syss gravatar image

I have Puppet 3.7.0 installed

puppet -V
3.7.0

I am in Modules path

pwd
/etc/puppet/environments/production/modules

My config

puppet config print modulepath
/etc/puppet/environments/production/modules:/etc/puppet/modules

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
1

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

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

Stats

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

Seen: 803 times

Last updated: Sep 17 '14