Ask Your Question

new install but no classes are recognized

asked 2014-05-23 11:54:27 -0600

glk gravatar image

I have test server and client set up both running debian 7 installed from the puppet supplied packages. On my server I have just one node defined in site.pp, and if I put operations in that, it works on the node. If I add a module and change the site.pp to "include module_name", with the module have the identical instructions I used in site.pp, puppet fails with "can't find class". I've checked the modulepath, I'm using only lowercase characters, so I'm really stumped. I also checked for the classes.txt file and it doesn't exist in the path puppet thinks it should be in.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-05-27 09:51:04 -0600

gh gravatar image

For class foo, that should be in $modulepath/foo/manifests/init.pp

You can find your modulepath with puppet config print modulepath

The init.pp should have

class foo (

) {
  # insert your code here

Suggest reading about modules and classes -

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


Asked: 2014-05-23 11:54:27 -0600

Seen: 78 times

Last updated: May 27 '14