Ask Your Question

puppet-lint failing on autoload

asked 2014-06-04 11:51:19 -0600

RobN gravatar image

updated 2014-06-05 07:54:12 -0600

I am setting up roles and profiles and even copied code directly from the puppet-labs site:

class role {
  include profile::base
class role::www inherits role {
  # All WWW servers get tomcat
    include profile::tomcat
class role::www::dev inherits role::www {
  include profile::webserver::dev
    include profile::database

And puppet-lint fails stating: ERROR: role::www not in autoload module layout on line 5 ERROR: role::www::dev not in autoload module layout on line 10

Can someone please help me understand what lint is finding wrong?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-06-05 15:31:40 -0600

doc75 gravatar image

Actually, this message is telling you that you should follow this rule:

It means that:

  • your module is named role
  • class role::www should be in file role/manifests/www.pp
  • class role::www::dev should be in file role/manifests/www/dev.pp

But in your case, I guess that puppet-lint might not be relevant if your are outside any module and trying to setup your site.

Hope this clarifies.

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-06-04 11:51:19 -0600

Seen: 8,662 times

Last updated: Jun 05 '14