Ask Your Question

Puppet can't find class

asked 2013-07-18 18:43:00 -0500

Ancillas gravatar image

updated 2013-07-23 14:48:05 -0500

I'd appreciate a second set of eyes if anyone has a few moments to help me track down an issue I'm running into. This is normally a spelling error when I see it, but I haven't found anything that simple yet.

The basic design is that modules should be sourced from the shared environment, but for testing, or short-term changes, newer versions of modules can be placed in specific environment/modules directories, and because those dirs are listed first in the modulepath, the newer versions will be sourced.

On the client after running sudo puppet agent -td ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-07-21 19:32:50 -0500

louis gravatar image

I think you have the names wrong or may be is just because i have never seen code like this :).

I will do the following...

  • webapp.pp should be divided into different files appserver.pp and dbserver.pp
  • Based on your note (# uses a regex selector to assign role::app_server). Puppet code should readable for everyone and most people probably won't understant regex expressions as easily as you.

Hopes this helps.

edit flag offensive delete link more


You're absolutely right. I broke the basic module design, and was fine because it was working in some cases, and this happened to be the first failure. I'm ...(more)

Ancillas gravatar imageAncillas ( 2013-07-23 14:43:51 -0500 )edit

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: 2013-07-18 18:43:00 -0500

Seen: 261 times

Last updated: Jul 23 '13