Puppet-lint Plugins List

Based on the Puppet-lint Plugins list available at the Puppet Community site, I’ve added the gem command line and Gemfile commands for easy installation.

absolute_classname

  • Check relative class name inclusions.
  • gem install puppet-lint-absolute_classname-check

absolute_template

  • Check if paths to the template() function are relative.
  • gem install puppet-lint-absolute_template_path

alias

  • Check for alias parameters in resources.
  • gem install puppet-lint-alias-check
  • gem 'puppet-lint-alias-check', :require => false

appends

  • Check that the appends operator (+=) is not used (removed in Puppet 4.0.0).
  • gem install puppet-lint-appends-check
  • gem 'puppet-lint-appends-check', :require => false

classes_and_types_beginning_with_digits

  • Check for types and class names that begin with digits.
  • gem install puppet-lint-classes_and_types_beginning_with_digits-check
  • gem 'puppet-lint-classes_and_types_beginning_with_digits-check', :require => false

empty_string

  • Check for variables assigned to the empty string.
  • gem install puppet-lint-classes_and_types_beginning_with_digits-check
  • gem 'puppet-lint-empty_string-check', :require => false

file_ensure

  • Check the ensure attribute on file resources.
  • gem install puppet-lint-file_ensure-check
  • gem 'puppet-lint-file_ensure-check', :require => false

file_source_rights

  • Check file rights when providing a source.
  • gem install puppet-lint-file_source_rights-check
  • gem 'puppet-lint-file_source_rights-check', :require => false

fileserver

  • Check if puppet:/// is used instead of file().
  • gem install puppet-lint-fileserver-check

global_resource

  • Ensure that your manifests have no global resources.
  • gem install puppet-lint-global_resource-check

leading_zero

  • Check for unquoted numbers with leading zero.
  • gem install puppet-lint-leading_zero-check
  • gem 'puppet-lint-leading_zero-check', :require =>; false

newmericvariable

  • Extends puppet-lint to ensure that your variables are not numeric.
  • gem install puppet-lint-numericvariable

package_ensure

  • Check the ensure attribute on package resources.
  • gem install puppet-lint-package_ensure-check
  • gem 'puppet-lint-package_ensure-check'

param_docs

  • Check that validates all parameters are documented.
  • gem install puppet-lint-param-docs

resource_outside_class

  • Check if resources exist outside of a class or defined type.
  • gem install puppet-lint-resource_outside_class-check

resource_reference_syntax

  • Ensure that the reference syntax follows Puppet 4 style.
  • gem install puppet-lint-resource_reference_syntax
  • gem 'puppet-lint-resource_reference_syntax'

roles_and_profiles

  • Check that a node definition declares only a role, a role class does not have any param and only declares profiles, and a profiles class can declare anything but a role. gem install puppet-lint-roles_and_profiles-check
  • gem install puppet-lint-roles_and_profiles-check
  • gem 'puppet-lint-roles_and_profiles-check'

security

  • Checks puppet manifests for security related problems.
  • gem install puppet-lint-security-plugins

spaceship_operator_without_tag

  • Check that spaceship operator is called with a tag.
  • gem install puppet-lint-spaceship_operator_without_tag-check
  • gem 'puppet-lint-spaceship_operator_without_tag-check', :require => false

strict_indent

  • Ensure that your manifests follow a strict indentation pattern.
  • gem install puppet-lint-strict_indent-check

trailing_comma

  • Check for missing trailing commas.
  • gem install puppet-lint-trailing_comma-check
  • gem 'puppet-lint-trailing_comma-check', :require => false

trailing_newline

  • Ensure that your manifest files end with newlines.
  • gem install puppet-lint-trailing_newline-check

undef_in_function

  • Check for undef in function calls.
  • gem install puppet-lint-undef_in_function-check

unquoted_string

  • Check that selectors and case statements cases are quoted.
  • gem install puppet-lint-unquoted_string-check
  • gem 'puppet-lint-unquoted_string-check', :require => false

usascii_format

  • Check that manifest files contain only US ASCII.
  • gem install puppet-lint-usascii_format-check

variable_contains_upcase

  • Ensure that your variables are all lower case.
  • gem install puppet-lint-variable_contains_upcase

version_comparison

  • Check for versions compared as numbers.
  • gem install puppet-lint-version_comparison-check
  • gem 'puppet-lint-version_comparison-check', :require => false

vim_modeline

  • Check for vim comment (modeline) as the last line in a manifest.
  • gem install puppet-lint-vim_modeline-check