No commit activity in last 3 years
No release in over 3 years
A puppet-lint plugin to check for idepotency with exec resources.
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-exec_idempotent-check

A puppet-lint plugin to check "exec" resources to ensure they have been written in an idempotent manner. Basically, ensure they used "onlyif", "unless", or "refreshonly".

Installing

From the command line

$ gem install puppet-lint-exec_idempotent-check

In a Gemfile

gem 'puppet-lint-exec_idempotent-check'

Checks

Validates that an exec resource is idempotent

For an exec resource to pass it must be using at least one parameter that ensures idempotence. The value being passed to the parameter is not checked. The parameters this check will expect to find are one of "onlyif", "unless", or "refreshonly" as the use of any one of these is considered to ensure idempotance for the exec resource. This check is, of course, opinionated in that regard, and to that end the "creates" parameter is not considered acceptable. This check does not view the creates parameter as a good practice.

Disabling the check

To disable this check, you can add --no-exec_idempotent-check to your puppet-lint command line.

$ puppet-lint --no-exec_idempotent-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_exec_idempotent')

Fix support

This check provides none! Fix your stuff :)