Don't check api_interface for 'deployment' group

'deployment' hosts don't need api interface. Previous fix checked
if hosts belong global groups like [compute] or [control] which
is not correct because uses can create own groups and the check
won't work there at all. Here the logic is reversed - we blacklist
groups that don't need api_interface.

Change-Id: Ibaa94004016ba41a2ae5700c48522e254c6ee239
Closes-Bug: #1732846
This commit is contained in:
Vladislav Belogrudov 2018-02-13 17:47:17 +03:00
parent 151d7fff55
commit 722185a424

View File

@ -1,10 +1,7 @@
---
- include: port_checks.yml
when:
- inventory_hostname in groups['control'] or
inventory_hostname in groups['network'] or
inventory_hostname in groups['compute'] or
inventory_hostname in groups['monitoring']
- inventory_hostname not in groups['deployment']
- include: service_checks.yml