Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Icinga::Cert[icingadb tls files for the database client connect] is already declared at (file: /etc/puppetlabs/code/modules/icingadb/manifests/config.pp, line: 15); cannot redeclare (file: /etc/puppetlabs/code/modules/icingadb/manifests/redis/config.pp, line: 29) (file: /etc/puppetlabs/code/modules/icingadb/manifests/redis/config.pp, line: 29, column: 5) on node icinga-master.local
Possible Solution
Change the name of the resource
/etc/puppetlabs/code/modules/icingadb/manifests/redis/config.pp
icinga::cert { 'icingadb tls files for the database client connect':
to
icinga::cert { 'icingadb-redis tls files for the database client connect':
for example.
icinga::cert { 'icingadb-redis tls files for the database client connect':
owner => $user,
group => $group,
args => $tls_files,
}
When you use icingadb::redis with tls parameters like this:
you will get a Duplicate Declaration error.
Expected Behavior
icingadb-redis package configures tls settings
Current Behavior
duplicate declaration:
Possible Solution
Change the name of the resource /etc/puppetlabs/code/modules/icingadb/manifests/redis/config.pp
icinga::cert { 'icingadb tls files for the database client connect':
to
icinga::cert { 'icingadb-redis tls files for the database client connect':
for example.
Steps to Reproduce (for bugs)
Context
Your Environment
Module version (
puppet module list
): ├── icinga-icinga (v3.2.1) ├── icinga-icinga2 (v3.6.2) ├── icinga-icingadb (v1.0.0) ├── icinga-icingaweb2 (v3.8.0)Puppet version (
puppet -V
): Agent: 6.10.1 Puppet-Master: 6.10.1Operating System and version: Agent: Debian 11 Puppet-Master: Debian 10.3