Skip to content

Commit

Permalink
ansible: remove healthcecks
Browse files Browse the repository at this point in the history
Will be replaced by gatus eventually.
  • Loading branch information
claha committed Sep 27, 2024
1 parent b035b7d commit 20d7e56
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 173 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/healthchecks.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions group_vars/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ jellyfin_href: "https://jellyfin.media.{{ domain }}"
audiobookshelf_href: "https://audiobookshelf.{{ domain }}"
gatus0_href: "http://{{ oci0_ip_tailscale }}:8080"
gatus1_href: "http://{{ oci1_ip_tailscale }}:8080"
healthchecks0_href: "http://{{ oci0_ip_tailscale }}:8000"
healthchecks1_href: "http://{{ oci1_ip_tailscale }}:8000"

homeassistant_glances:
- name: RPi4
Expand Down
9 changes: 0 additions & 9 deletions group_vars/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ gatus_dns_endpoints:
server: "{{ rpi2_ip_tailscale }}"
query: "media.{{ domain }}"
body: "{{ chewbacca_ip }}"
gatus_healthcheck_endpoints:
- name: Backup homeassistant
uuid: "{{ healthchecks_backup_homeassistant_uuid }}"
- name: Backup zigbee2mqtt
uuid: "{{ healthchecks_backup_zigbee2mqtt_uuid }}"
- name: Backup navidrome
uuid: "{{ healthchecks_backup_navidrome_uuid }}"
- name: Backup audiobookshelf
uuid: "{{ healthchecks_backup_audiobookshelf_uuid }}"
gatus_external_endpoints:
- name: Backup homeassistant
- name: Backup zigbee2mqtt
Expand Down
1 change: 0 additions & 1 deletion group_vars/pihole1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ gatus_dns_endpoints:
server: "{{ rpi2_ip }}"
query: "media.{{ domain }}"
body: "{{ chewbacca_ip }}"
gatus_healthcheck_endpoints: []
gatus_tailscale_devices: []
2 changes: 0 additions & 2 deletions host_vars/oci0.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions host_vars/oci1.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@
tags: never, init, docker_prune
- role: tailscale
tags: tailscale
- role: healthchecks
tags: healthchecks
- role: gatus
tags: gatus
- role: glances
Expand Down
2 changes: 0 additions & 2 deletions roles/autorestic/templates/autorestic.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ locations:
success:
- 'curl -X POST {{ oci0_ip_tailscale }}:8080/api/v1/endpoints/external_backup-homeassistant/external?success=true -H "Authorization: Bearer gatus"'
- 'curl -X POST {{ oci1_ip_tailscale }}:8080/api/v1/endpoints/external_backup-homeassistant/external?success=true -H "Authorization: Bearer gatus"'
- 'curl {{ healthchecks_backup_homeassistant_ping_url }}'
failure:
- 'curl -X POST {{ oci0_ip_tailscale }}:8080/api/v1/endpoints/external_backup-homeassistant/external?success=false -H "Authorization: Bearer gatus"'
- 'curl -X POST {{ oci1_ip_tailscale }}:8080/api/v1/endpoints/external_backup-homeassistant/external?success=false -H "Authorization: Bearer gatus"'
Expand All @@ -56,7 +55,6 @@ locations:
success:
- 'curl -X POST {{ oci0_ip_tailscale }}:8080/api/v1/endpoints/external_backup-zigbee2mqtt/external?success=true -H "Authorization: Bearer gatus"'
- 'curl -X POST {{ oci1_ip_tailscale }}:8080/api/v1/endpoints/external_backup-zigbee2mqtt/external?success=true -H "Authorization: Bearer gatus"'
- 'curl {{ healthchecks_backup_zigbee2mqtt_ping_url }}'
failure:
- 'curl -X POST {{ oci0_ip_tailscale }}:8080/api/v1/endpoints/external_backup-zigbee2mqtt/external?success=false -H "Authorization: Bearer gatus"'
- 'curl -X POST {{ oci1_ip_tailscale }}:8080/api/v1/endpoints/external_backup-zigbee2mqtt/external?success=false -H "Authorization: Bearer gatus"'
1 change: 0 additions & 1 deletion roles/gatus/defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
gatus_icmp_endpoints: []
gatus_dns_endpoints: []
gatus_healthcheck_endpoints: []
gatus_external_endpoints: []
gatus_tailscale_devices_ignore: []
10 changes: 0 additions & 10 deletions roles/gatus/templates/compose.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,10 @@ services:
gatus:
image: ghcr.io/twin/gatus:v5.12.1
container_name: gatus
{% if gatus_healthchecks_network is defined %}
networks:
- {{ gatus_healthchecks_network }}
{% endif %}
security_opt:
- no-new-privileges:true
ports:
- 8080:8080
volumes:
- ./config.yaml:/config/config.yaml
restart: unless-stopped

{% if gatus_healthchecks_network is defined %}
networks:
{{ gatus_healthchecks_network }}:
external: true
{% endif %}
18 changes: 0 additions & 18 deletions roles/gatus/templates/config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,6 @@ endpoints:
{% if endpoint.success_threshold is defined %}
success-threshold: {{ endpoint.success_threshold }}
{% endif %}
{% endfor %}
{% for endpoint in gatus_healthcheck_endpoints %}
- name: {{ endpoint.name }}
group: Healthchecks
url: "{{ gatus_healthchecks_url }}:8000/api/v3/checks/{{ endpoint.uuid }}"
headers:
X-Api-Key: {{ healthchecks_api_key }}
interval: 15m
conditions:
- "[BODY].status == any(grace, up)"
alerts:
- type: telegram
{% if endpoint.failure_threshold is defined %}
failure-threshold: {{ endpoint.failure_threshold }}
{% endif %}
{% if endpoint.success_threshold is defined %}
success-threshold: {{ endpoint.success_threshold }}
{% endif %}
{% endfor %}
- name: Audiobookshelf
group: Services
Expand Down
3 changes: 0 additions & 3 deletions roles/healthchecks/defaults/main.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions roles/healthchecks/files/uwsgi.ini

This file was deleted.

6 changes: 0 additions & 6 deletions roles/healthchecks/handlers/main.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions roles/healthchecks/tasks/main.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions roles/healthchecks/templates/compose.yaml.j2

This file was deleted.

0 comments on commit 20d7e56

Please sign in to comment.