Repository is archived
No release in over 3 years
Low commit activity in last 3 years
Extends puppet-lint to ensure there are no calls to the template or inline_template function as an aid to migrating to epp templates.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 1.1, < 3.0
 Project Readme

puppet-lint no ERB templates check

Actions Status

As part of the migration to a cleaner, Puppet 4 enhanced, code base one of the suggestions is to move from the old ERB (Embedded Ruby) templates to the newer, kinder, gentler epp (Embedded Puppet Programming) equivalents. You can find more details in the Templating with Embedded Puppet Programming Language - EPP blog post.

The lint check in this plugin will raise a warning anywhere a template() or inline_template() function call is found in your manifests. It's worth noting that this plugin will probably raise a lot of warnings if you use external modules that maintain Puppet 3 compatibility; and will be of most use in new, Puppet 4 only code bases.

Installation

To use this plugin add the following line to your Gemfile

gem 'puppet-lint-no_erb_template-check'

and then run bundle install.

Usage

This plugin provides two new checks to puppet-lint.

'inline_template() function call. Use inline_epp() instead'

'template() function call. Use epp() instead'

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