Repository is archived
No commit activity in last 3 years
No release in over 3 years
Extends puppet-lint to ensure all filenames used in template functions end with the string '.erb'
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 non ERB template file name check

DEPRECATED

Extends puppet-lint to ensure all file names used in template functions end with the string '.erb'.

This plugin has been replaced by puppet-lint-template_file_extension-check which provides all the functionality this check does and more. You should move over to the new plugin when possible.

Build Status

This plugin is an extension of our local style guide and may not suit your own code base. This sample would trigger the puppet-lint warning:

class valid_template_filename {
  file { '/tmp/templated':
    content => template('mymodule/single_file.config'),
  }
}

# all template file names should end with ".erb"

Installation

To use this plugin add the following line to your Gemfile

gem 'puppet-lint-non_erb_template_filename-check'

and then run bundle install.

Usage

This plugin provides a new check to puppet-lint.

all template file names should end with ".erb"

Other puppet-lint plugins

You can find a list of my puppet-lint plugins in the unixdaemon puppet-lint-plugins repo.

Author

Dean Wilson

License

  • MIT