- Erstelle Symlink für inventory/group_vars/production.yml - Ansible lädt group_vars automatisch, wenn sie neben der Inventory-Datei liegen - Entferne manuelle include_vars Aufrufe (werden später bereinigt) - Test: Production Deployment Workflow
48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
---
|
|
# Production Deployment - Centralized Variables
|
|
# These variables are used across all playbooks
|
|
|
|
# Deployment Paths
|
|
deploy_user_home: "/home/deploy"
|
|
stacks_base_path: "{{ deploy_user_home }}/deployment/stacks"
|
|
app_stack_path: "{{ stacks_base_path }}/application"
|
|
backups_path: "{{ deploy_user_home }}/deployment/backups"
|
|
|
|
# Docker Registry
|
|
docker_registry: "localhost:5000"
|
|
docker_registry_url: "localhost:5000"
|
|
docker_registry_external: "registry.michaelschiemer.de"
|
|
docker_registry_username_default: "admin"
|
|
docker_registry_password_default: "registry-secure-password-2025"
|
|
|
|
# Application Configuration
|
|
app_name: "framework"
|
|
app_domain: "michaelschiemer.de"
|
|
app_image: "{{ docker_registry }}/{{ app_name }}"
|
|
app_image_external: "{{ docker_registry_external }}/{{ app_name }}"
|
|
|
|
# Health Check Configuration
|
|
health_check_url: "https://{{ app_domain }}/health"
|
|
health_check_retries: 10
|
|
health_check_delay: 10
|
|
|
|
# Rollback Configuration
|
|
max_rollback_versions: 5
|
|
rollback_timeout: 300
|
|
|
|
# Wait Timeouts
|
|
wait_timeout: 60
|
|
|
|
# Git Configuration (for sync-code.yml)
|
|
git_repository_url_default: "https://git.michaelschiemer.de/michael/michaelschiemer.git"
|
|
git_branch_default: "main"
|
|
git_token: "{{ vault_git_token | default('') }}"
|
|
git_username: "{{ vault_git_username | default('') }}"
|
|
git_password: "{{ vault_git_password | default('') }}"
|
|
|
|
# MinIO Object Storage Configuration
|
|
minio_root_user: "{{ vault_minio_root_user | default('minioadmin') }}"
|
|
minio_root_password: "{{ vault_minio_root_password | default('') }}"
|
|
minio_api_domain: "minio-api.michaelschiemer.de"
|
|
minio_console_domain: "minio.michaelschiemer.de"
|