when trying to apply the configuration to a client:
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: File[/var/lib/elasticsearch] is already declared in file /etc/puppet/modules/elasticsearch/manifests/init.pp at line 111; cannot redeclare at /etc/puppet/modules/elasticsearch/manifests/init.pp:118 on node search0
i'm assuming this is because $esDataPath and /var/lib/${esBasename} evaluate to the same path, hence a redeclaration.
am i doing something wrong? thanks!