40 lines
1.9 KiB
YAML
40 lines
1.9 KiB
YAML
# Ansible Roles for managing Auengun.net Infrastructure & Testing/Learning.
|
|
# Source available at git.auengun.net/homelab/ansible-collection
|
|
# Copyright (C) 2023 GregoryDosh
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
# License, or (at your option) any later version.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
# SPDX-FileCopyrightText: 2023 GregoryDosh
|
|
---
|
|
HEALTHCHECK_SITE_URL: "https://healthchecks.auengun.net/api/v2/checks/"
|
|
HEALTHCHECK_SITE_API_KEY: "{{ lookup('ansible.builtin.env', 'HEALTHCHECK_SITE_API_KEY') }}"
|
|
|
|
HEALTHCHECK_NAME: "Healthcheck - {{ inventory_hostname_short }}"
|
|
HEALTHCHECK_CRON_USER: "{{ ansible_user }}"
|
|
HEALTHCHECK_CRON_MINUTE: "{{ 59 | random(seed=HEALTHCHECK_NAME) }}"
|
|
HEALTHCHECK_CRON_HOUR: "*"
|
|
HEALTHCHECK_CRON_DAY: "*"
|
|
HEALTHCHECK_CRON_MONTH: "*"
|
|
HEALTHCHECK_CRON_WEEKDAY: "*"
|
|
HEALTHCHECK_SCHEDULE: "{{ HEALTHCHECK_CRON_MINUTE }} {{ HEALTHCHECK_CRON_HOUR }} {{ HEALTHCHECK_CRON_DAY }} {{ HEALTHCHECK_CRON_MONTH }} {{ HEALTHCHECK_CRON_WEEKDAY }}"
|
|
HEALTHCHECK_GRACE: 600
|
|
HEALTHCHECK_TAGS: "{{ inventory_hostname_short }}"
|
|
|
|
HEALTHCHECK_FILE_BASEPATH: /usr/local/{% if HEALTHCHECK_CRON_USER == 'root' %}s{% endif %}bin
|
|
HEALTHCHECK_FILE_NAME: healthcheck.sh
|
|
HEALTHCHECK_FILE_USER: "{{ HEALTHCHECK_CRON_USER }}"
|
|
HEALTHCHECK_FILE_GROUP: "{{ HEALTHCHECK_CRON_USER }}"
|
|
HEALTHCHECK_FILE_MODE: "0750"
|
|
HEALTHCHECK_FILE_CONTENT: ""
|