rodjek/puppet-lint — Issue #57: Autoload module check doesn't seem to work
Author: aknapp
Created: 2012-01-16 21:14:08+00:00
State: open

I'm getting this error when running puppet-lint:

andrew@ares:~/dev/git/puppet-modules/modules$ puppet-lint autofs/manifests/base.pp
ERROR: autofs::base not in autoload module layout on line 1

Here's the puppet file:

class autofs::base {
$nfs_master_host = $::domain ? {
'internal.domain1' => 'x.x.x.x',
'internal.domain2' => 'x.x.x.x',
}

package { 'autofs5':
ensure => 'installed',
}

file { '/etc/auto.master':
source => 'puppet:///modules/autofs/auto.master',
notify => Service['autofs'],
owner => 'root',
group => 'root',
mode => '0644',
}

file { '/etc/auto.home':
content => template('autofs/auto.home.erb'),
notify => Service['autofs'],
owner => 'root',
group => 'root',
mode => '0644',
}

service { 'autofs':
ensure => 'running',
enable => true,
hasstatus => true,
require => Package['autofs5'],
}
}

And the file layouts:

andrew@ares:~/dev/git/puppet-modules/modules$ ls -R autofs/
autofs/:
files manifests templates

autofs/files:
auto.master

autofs/manifests:
base.pp init.pp

autofs/templates:
auto.home.erb

Everything looks good to me here, but I'm still getting the error (not only in this manifest, but in many others as well). For now I've just disabled the check, but I'd like to be using it.

Am I missing something simple here?

Thanks,
Andy