Icinga / icingaweb2-module-puppetdb

PuppetDB module for Icinga Web 2 (ImportSource for Icinga Director)
12 stars 6 forks source link

The module is not IcingaDB compatible yet #20

Open MarcusCaepio opened 1 year ago

MarcusCaepio commented 1 year ago

If you have deactivated the IDO backend including the monitoring module and only activated the IcingaDB front- and backend, you cannot activate the puppetdb module due to an unmet dependency on the monitoring module.

Expected Behavior

Module can be used in environments with IcingaDB

Current Behavior

Module cannot be used in IcingaDB environments at the moment

Possible Solution

Make it IcingaDB compatible :)

Steps to Reproduce (for bugs)

  1. Install Icinga with IcingaDB Front and backend only
  2. Install Icinga Director
  3. Install the Import Source puppetdb
  4. Try to activate puppetdb, you see the unmet dependency info

Context

I want to try the puppet importsource in an IcingaDB environment

Your Environment

Thanks and cheers, Marcus

Tuxdiver commented 1 year ago

A "grep" in the source code does not find any references to the monitoring module, so removing the "Depends:" line in module.info makes the module work again - but of course someone with knowledge of the module should check and fix it.

diff --git a/module.info b/module.info
index 483294b..15f4284 100644
--- a/module.info
+++ b/module.info
@@ -1,5 +1,4 @@
 Name: AWS
 Version: 1.0.0
-Depends: monitoring
 Description: PuppetDB module for Icinga Web 2
  This module provides a PuppetDB import source for Icinga Director