Skip to content

camptocamp/puppet-lint-fileserver-check

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages