Hi everyone, I'm setting up a new icinga2 site and ran into a small
difficulty.

The site in question already heavily uses ansible and it makes sense to
integrate icinga2 setup with it as much as possible. Specifically, ansible
roles should be translated into HostGroups etc.

The problem starts when multiple roles are assigned to the same Host - the
host definition now needs to be constructed across multiple ansible
locations (each one adding a group or attribute to the Host). While it is
possible to define a Service on a specific Host outside of the Host
definition, that doesn't seem possible with attributes or HostGroups
(except for the case of assigning a HostGroup to all hosts based on an
attribute etc., but that doesn't seem relevant here).

My current solution is to add an include *inside* the Host definition, and
then drop files adding attributes and group membership from the different
roles. This seems pretty heavy and needlessly complicated, though, am I
missing something?

Oh, and thanks for making an awesome monitoring platform!

Shay
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to