Icinga / ansible-collection-icinga

Collection to setup and manage components of the Icinga software stack
Apache License 2.0
46 stars 35 forks source link

Icinga Kubernetes Role and Icinga Kubernetes Web install #348

Open gianmarco-mameli opened 2 weeks ago

gianmarco-mameli commented 2 weeks ago

Hello, in the past month I tried the new Icinga Kubernetes daemon and module and, because my Icinga Infrastructure is outside of my K3S Cluster, I preferred to install the packages on the master nodes. Using most of the excellent existent work, I copied the structures and implemented the installation of the daemon and db schema, in addition to the Icingaweb2 dedicated module. The tasks are working and running correctly on my Icinga test installation (both existent and from scratch), so if you're interested I appreciate to check and merge my work. I think I have covered most of the docs and files that needed update, but I certainly not a good expert to add the Molecule tests needed, so in that case maybe I need some help, but I'm already trying to fill the gaps

Thanks

PS. In my spare time I'm also implementing the same work for Dependencies and Fileshipper modules.

mkayontour commented 2 weeks ago

Hi, at the first glance this looks really good, thank you for the work. We'll review it as soon as possible and give you feedback.

Donien commented 1 week ago

One more thing (could not add to my review somehow).

https://github.com/gianmarco-mameli/ansible-collection-icinga/blob/kubernetes_role_and_module/roles/icingaweb2/vars/main.yml#L1-L6

   director: icinga-director
   x509: icinga-x509
   businessprocess: icinga-businessprocess
+  kubernetes: icinga-kubernetes-web

This is needed so the mapping from icingaweb2_modules.kubernetes to the appropriate package can be made.

gianmarco-mameli commented 1 week ago

ok, I made the fix you suggested, thanks

gianmarco-mameli commented 1 week ago

changelog fragment ok