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