Phase9
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 9s
CI / Go — node-agent tests (push) Failing after 8s
CI / Go — edge-gateway build (push) Successful in 17s

This commit is contained in:
smueller
2026-06-26 13:46:25 +02:00
parent b335f6a497
commit ed8334328e
49 changed files with 2219 additions and 16 deletions

View File

@@ -0,0 +1,48 @@
---
- name: Provision control plane
hosts: control_plane
become: true
vars:
gamecloud_user: gamecloud
gamecloud_home: /opt/hexahost-gamecloud
tasks:
- name: Install base packages
ansible.builtin.apt:
name:
- docker.io
- docker-compose-plugin
- postgresql-client
- redis-tools
- bind9-utils
state: present
update_cache: true
- name: Create application user
ansible.builtin.user:
name: "{{ gamecloud_user }}"
system: true
create_home: false
- name: Create application directory
ansible.builtin.file:
path: "{{ gamecloud_home }}"
state: directory
owner: "{{ gamecloud_user }}"
group: "{{ gamecloud_user }}"
mode: "0750"
- name: Deploy compose stack placeholder
ansible.builtin.copy:
dest: "{{ gamecloud_home }}/README.txt"
owner: "{{ gamecloud_user }}"
group: "{{ gamecloud_user }}"
mode: "0640"
content: |
Deploy the production compose stack from deploy/compose on this host.
Required services: PostgreSQL, Redis, MinIO, API, Worker, Web, Edge Gateway.
- name: Remind operator about DNS
ansible.builtin.debug:
msg: >-
Configure DNS_PROVIDER=rfc2136 and RFC2136_* variables on the API/worker hosts.
Join hostnames must point to the edge gateway public IP.