feat: backup appwrite

fix: CORS error by adding platforms
fix: Update alertmanager listener for event streams
This commit is contained in:
2026-04-08 21:56:57 -04:00
parent f14e405e6f
commit aa0742d816
5 changed files with 108 additions and 4 deletions

View File

@@ -5,6 +5,34 @@
tags: deps
tasks:
# A FQDN system hostname causes NetworkManager to write the domain suffix as a
# 'search' entry in /etc/resolv.conf. Docker inherits this into every container.
# The Appwrite executor uses randomly-generated short hostnames to reach runtime
# containers via DNS; with a search domain present, those names get the suffix
# appended, upstream DNS returns SERVFAIL, and musl's resolver does not fall back
# to the absolute name — breaking function execution with curl error 6.
- name: Assert system hostname is not a FQDN
ansible.builtin.assert:
that: "'.' not in ansible_hostname"
fail_msg: >-
System hostname '{{ ansible_hostname }}' is a FQDN. Shorten it first:
hostnamectl set-hostname {{ ansible_hostname.split('.')[0] }}
- name: Check for search domain in /etc/resolv.conf
ansible.builtin.command:
cmd: grep -c '^search ' /etc/resolv.conf
register: resolv_search
changed_when: false
failed_when: false
- name: Assert no search domain in /etc/resolv.conf
ansible.builtin.assert:
that: resolv_search.rc != 0
fail_msg: >-
/etc/resolv.conf contains a 'search' domain. This is typically caused by a
FQDN system hostname. Shorten the hostname and reconnect the NM interface
to regenerate resolv.conf without the search entry.
- name: Update all packages to latest
ansible.builtin.dnf:
name: "*"

View File

@@ -127,14 +127,14 @@ _APP_FUNCTIONS_RUNTIMES={{ appwrite_functions_runtimes | default('node-16.0,php-
_APP_EXECUTOR_SECRET={{ vault_appwrite_executor_secret }}
_APP_EXECUTOR_HOST={{ appwrite_executor_host | default('http://exc1/v1') }}
_APP_BROWSER_HOST={{ appwrite_browser_host | default('http://appwrite-browser:3000/v1') }}
_APP_EXECUTOR_RUNTIME_NETWORK={{ appwrite_executor_runtime_network | default('appwrite_runtimes') }}
_APP_EXECUTOR_RUNTIME_NETWORK={{ appwrite_executor_runtime_network | default('runtimes') }}
_APP_FUNCTIONS_ENVS={{ appwrite_functions_envs | default('node-16.0,php-7.4,python-3.9,ruby-3.0') }}
_APP_FUNCTIONS_INACTIVE_THRESHOLD={{ appwrite_functions_inactive_threshold | default(60) }}
_APP_COMPUTE_INACTIVE_THRESHOLD={{ appwrite_compute_inactive_threshold | default(60) }}
DOCKERHUB_PULL_USERNAME={{ appwrite_dockerhub_username | default('') }}
DOCKERHUB_PULL_PASSWORD={{ appwrite_dockerhub_password | default('') }}
DOCKERHUB_PULL_EMAIL={{ appwrite_dockerhub_email | default('') }}
OPEN_RUNTIMES_NETWORK={{ appwrite_open_runtimes_network | default('appwrite_runtimes') }}
OPEN_RUNTIMES_NETWORK={{ appwrite_open_runtimes_network | default('runtimes') }}
_APP_FUNCTIONS_RUNTIMES_NETWORK={{ appwrite_functions_runtimes_network | default('runtimes') }}
_APP_COMPUTE_RUNTIMES_NETWORK={{ appwrite_compute_runtimes_network | default('runtimes') }}
_APP_DOCKER_HUB_USERNAME={{ appwrite_docker_hub_username | default('') }}