If a resource declaration includes an ensure parameter, it should be the
first parameter specified (style guide).
file { '/tmp/foo':
owner => 'root',
group => 'root',
ensure => present,
}file { '/tmp/foo':
ensure => present,
owner => 'root',
group => 'root',
}To disable this check you can add --no-ensure_first_param-check to your
puppet-lint command line.
$ puppet-lint --no-ensure_first_param-check path/to/file.ppAlternatively, if you’re calling puppet-lint via the Rake task, you should
insert the following line to your Rakefile.
PuppetLint.configuration.send('disable_ensure_first_param')