Skip to content

Commit

Permalink
manager: fix depends_on of the inventory reconciler service (#1764)
Browse files Browse the repository at this point in the history
The inventory reconciler service depends on all *-ansible services
because of the /interface files.

Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt authored Feb 18, 2025
1 parent 3dcae50 commit 51d9787
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions roles/manager/templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ services:
{% else %}
- "{{ configuration_directory }}:/opt/configuration:ro"
{% endif %}
depends_on:
redis:
condition: service_healthy
osism-ansible:
condition: service_healthy
{% for service in ansible_services %}
{% if service.enable|bool %}
{{ service.name }}:
condition: service_healthy
{% endif %}
{% endfor %}
{% if enable_celery|bool %}
healthcheck:
test: pgrep celery
Expand Down Expand Up @@ -89,8 +100,6 @@ services:
- NETBOX_TOKEN
{% endif %}
depends_on:
inventory_reconciler:
condition: service_started
redis:
condition: service_healthy
{% if enable_ara|bool %}
Expand Down

0 comments on commit 51d9787

Please sign in to comment.