Class not autoloading

asked 2015-06-12 15:18:48 -0600

thewellington gravatar image

updated 2015-06-12 16:00:36 -0600

I am running PE 3.7, and I have created a new class that is not autoloading in the enterprise console.

Here is the contents of load_balancer.pp

class roles::load_balancer inherits roles {

  include profiles::haproxy.pp


I cannot find the class load_balancer int he classification tab when trying to assign it to a group.

Sitting in the same directory as load_balancer.pp is the following file"

class roles::app_server_nginx inherits roles {

  include profiles::nginx
  include profiles::cats::catsweb
  include profiles::cats::director
  include profiles::cats::catsnginx

  # nginx must be installed first  
  -> Class['profiles::cats::catsnginx']


I can find the class app_server_nginx

I have waited for several hours for the load_balancer class to autoload, but it is just not happening. What am I missing?

edit retag flag offensive close merge delete


I'm not sure if it's the problem, but the '.pp' extension in the load_balancer class is invalid syntax. Also, this isn't really an autoloader problem; the autoloader is an internal feature of Puppet, not part of the PE console. Sorry I can't help more.

cbarbour gravatar imagecbarbour ( 2015-06-14 19:53:05 -0600 )edit

yeah... that was the solution... I don't know why I didn't see it myself.

thewellington gravatar imagethewellington ( 2015-06-29 15:08:05 -0600 )edit