A puppet-lint plugin to check that you use the file()
function instead of the Puppet Fileserver.
Fileserver use is very slow and for small files (<16KB)
file { 'foo':
ensure => file,
source => 'puppet:///modules/foo/bar',
}
file { 'foo':
ensure => file,
content => file('foo/bar'),
}
To disable this check, you can add --no-fileserver-check
to your puppet-lint command line.
$ puppet-lint --no-fileserver-check path/to/file.pp
Alternatively, if you’re calling puppet-lint via the Rake task, you should insert the following line to your Rakefile
.
PuppetLint.configuration.send('disable_fileserver')