You really shouldn’t have duplicate parameters in a resource declaration, it is going to lead to strangness.
file { '/tmp/foo':
owner => 'root',
owner => 'foo',
}
file { '/tmp/foo':
owner => 'root',
}
To disable this check you can add --no-duplicate_params-check
to your
puppet-lint
command line.
$ puppet-lint --no-duplicate_params-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_duplicate_params')