Duplicate Parameters


You really shouldn’t have duplicate parameters in a resource declaration, it is going to lead to strangness.

What you have done

file { '/tmp/foo':
  owner  => 'root',
  owner  => 'foo',
}

What you should have done:

file { '/tmp/foo':
  owner  => 'root',
}

Disabling the check

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')