Skip to content
Snippets Groups Projects
Commit eb797c6c authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/arocom#2989 Enhance Cronjob Healthcheck lookup to support...

ansible-inventories/arocom#2989 Enhance Cronjob Healthcheck lookup to support grace period and to remove checks for inactive cronjobs
parent 05a24868
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@
- DrushUpdateAliases
- set_fact:
healthcheckping1: "{{ lookup('healthchecks', '', base_url='https://healthchecks.lakedrops.com', api_key=healthchecks.api, host=inventory_hostname, user='root', jobname=['Run Drush Cron on @', inventory_hostname, drushSubkey]|join(''), schedule=[drush_cron_core.minute|default('*'),drush_cron_core.hour|default('*'),drush_cron_core.day|default('*'),drush_cron_core.month|default('*'),drush_cron_core.weekday|default('*')]|join(' '), channels=healthchecks.channels|join(',')) }}"
healthcheckping1: "{{ lookup('healthchecks', '', user='root', jobname=['Run Drush Cron on @', inventory_hostname, drushSubkey]|join(''), schedule=[drush_cron_core.minute|default('*'),drush_cron_core.hour|default('*'),drush_cron_core.day|default('*'),drush_cron_core.month|default('*'),drush_cron_core.weekday|default('*')]|join(' '), duration=drush_cron_core.duration|default(3600), disabled=crons_disabled|default(false)) }}"
when: drush_cron_core.active
tags:
- cron
......@@ -144,7 +144,7 @@
- cron
- set_fact:
healthcheckping2: "{{ lookup('healthchecks', '', base_url='https://healthchecks.lakedrops.com', api_key=healthchecks.api, host=inventory_hostname, user='root', jobname=['Run Drush Translation Refresh on @', inventory_hostname, drushSubkey]|join(''), schedule=[drush_cron_translation.minute|default('*'),drush_cron_translation.hour|default('*'),drush_cron_translation.day|default('*'),drush_cron_translation.month|default('*'),drush_cron_translation.weekday|default('*')]|join(' '), channels=healthchecks.channels|join(',')) }}"
healthcheckping2: "{{ lookup('healthchecks', '', user='root', jobname=['Run Drush Translation Refresh on @', inventory_hostname, drushSubkey]|join(''), schedule=[drush_cron_translation.minute|default('*'),drush_cron_translation.hour|default('*'),drush_cron_translation.day|default('*'),drush_cron_translation.month|default('*'),drush_cron_translation.weekday|default('*')]|join(' '), duration=drush_cron_translation.duration|default(3600), disabled=crons_disabled|default(false)) }}"
when: drush_cron_translation.active
tags:
- cron
......@@ -164,7 +164,7 @@
- cron
- set_fact:
healthcheckping3: "{{ lookup('healthchecks', '', base_url='https://healthchecks.lakedrops.com', api_key=healthchecks.api, host=inventory_hostname, user='root', jobname=['Run Drush Translation Update on @', inventory_hostname, drushSubkey]|join(''), schedule=[drush_cron_translation.minute|default('*'),drush_cron_translation.hour|default('*'),drush_cron_translation.day|default('*'),drush_cron_translation.month|default('*'),drush_cron_translation.weekday|default('*')]|join(' '), channels=healthchecks.channels|join(',')) }}"
healthcheckping3: "{{ lookup('healthchecks', '', user='root', jobname=['Run Drush Translation Update on @', inventory_hostname, drushSubkey]|join(''), schedule=[drush_cron_translation.minute|default('*'),drush_cron_translation.hour|default('*'),drush_cron_translation.day|default('*'),drush_cron_translation.month|default('*'),drush_cron_translation.weekday|default('*')]|join(' '), duration=drush_cron_disabled.duration|default(3600), disabled=crons_disabled|default(false)) }}"
when: drush_cron_translation.active
tags:
- cron
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment