No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/puppet-lint/plugins
spec
.gitignore
.travis.yml
Gemfile
README.md
Rakefile
puppet-lint-fileserver-check.gemspec

README.md

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