No commit activity in last 3 years
No release in over 3 years
A puppet-lint plugin to check if puppet:/// is used instead of file().
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

puppet-lint-fileserver-check

Build Status

A puppet-lint plugin to check that you use the file() function instead of the Puppet Fileserver.

Checks

Fileserver use

Fileserver use is very slow and for small files (<16KB)

What you have done

file { 'foo':
  ensure => file,
  source => 'puppet:///modules/foo/bar',
}

What you should have done

file { 'foo':
  ensure  => file,
  content => file('foo/bar'),
}

Disabling the check

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')