feat(ansible): add semaphore docker splash demo with dagster config
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
# Configuration for SemaphoreUI + Ansible Docker Splash Demo
|
||||
# Aggiorna i campi in base al tuo ambiente
|
||||
|
||||
# SemaphoreUI connection settings
|
||||
semaphore_url: "https://your-semaphore-instance.com"
|
||||
semaphore_token: "your-semaphore-api-token"
|
||||
project_id: 1
|
||||
|
||||
# Git repository configuration
|
||||
git_provider: "gitea" # github, gitlab, gitea, ...
|
||||
git_base_url: "https://your-gitea-instance.com"
|
||||
git_repo_url: "https://your-gitea-instance.com/your-user/ansible-semaphore-docker-demo.git"
|
||||
git_branch: "main"
|
||||
|
||||
# Git authentication (optional for private repos)
|
||||
git_username: "your-username"
|
||||
git_access_token: "your-personal-access-token"
|
||||
|
||||
# Environment configuration
|
||||
environment_name: "Semaphore Docker Splash Environment"
|
||||
environment_variables:
|
||||
nginx_image: "nginx"
|
||||
nginx_version: "1.27-alpine"
|
||||
container_name: "semaphore-splash"
|
||||
|
||||
app_port: "8090"
|
||||
app_environment: "production"
|
||||
greeting_message: "Ciao dal deploy SemaphoreUI"
|
||||
|
||||
accent_color: "#0ea5a4"
|
||||
secondary_color: "#f97316"
|
||||
|
||||
remove_image: "false"
|
||||
|
||||
nginx_worker_processes: "auto"
|
||||
nginx_worker_connections: "1024"
|
||||
|
||||
# Optional encrypted secrets in SemaphoreUI Environment
|
||||
secrets:
|
||||
app_secret: "demo-secret-from-semaphore"
|
||||
release_id: "v1-test"
|
||||
demo_api_key: "demo-api-key-123"
|
||||
demo_db_password: "demo-db-pass-123"
|
||||
|
||||
# Inventory configuration
|
||||
inventory_name: "Docker Splash Servers"
|
||||
inventory_type: "static"
|
||||
inventory_content: |
|
||||
[webservers]
|
||||
server1 ansible_host=XXX.XXX.XXX.XXX ansible_user=root
|
||||
|
||||
[webservers:vars]
|
||||
ansible_python_interpreter=/usr/bin/python3
|
||||
|
||||
[all:vars]
|
||||
ansible_connection=ssh
|
||||
|
||||
# Ansible Vault configuration
|
||||
# Se non usi file vault, puo restare vuoto
|
||||
vault_password: ""
|
||||
|
||||
# Playbooks configuration
|
||||
playbooks:
|
||||
- name: "Test Connectivity"
|
||||
description: "Check host reachability and Docker prerequisites"
|
||||
playbook_filename: "test.yml"
|
||||
|
||||
- name: "Deploy Splash App"
|
||||
description: "Deploy Nginx container with custom splash page"
|
||||
playbook_filename: "deploy.yml"
|
||||
|
||||
- name: "Undeploy Splash App"
|
||||
description: "Remove container and clean up resources"
|
||||
playbook_filename: "undeploy.yml"
|
||||
|
||||
# Optional additional settings
|
||||
timeout_seconds: 30
|
||||
enable_health_check: true
|
||||
Reference in New Issue
Block a user