Given the confusing error message:

> 
> err: Could not retrieve catalog from remote server: Error 400 on
>  SERVER: Duplicate declaration: File[/etc/logstash/conf.d] is already
>  declared in file 
>  /var/lib/puppet/envs/SYS\_15378/modules/logstash/manifests/config.pp at
>  line 54; cannot redeclare at
>  /var/lib/puppet/envs/SYS\_15378/modules/logstash/manifests/config.pp:54
>  on node foo.bar.com
> 
> 
> 

Questions:

* If this is really duplicating a file, how do I go about debugging it (finding the file)?
* If not... what is this actually communicating?

Notice:

* the duplicate declaration is on line 54
* the file it is duplicating is defined on... line 54
* line 54 is the same line as line 54

The line in question is the closing brace of:

```
file { "${logstash::params::config_dir}":
   ensure  => directory,
   owner   => root,
   group   => root,
   mode    => '0755',
   purge   => true,
}

```

where

```
class logstash::params {
 $config_dir = '/etc/logstash/conf.d'
  ...
}

```