check new version
This commit is contained in:
@@ -1,18 +1,31 @@
|
||||
---
|
||||
# Environment
|
||||
environment: production
|
||||
# Variables globales pour la production
|
||||
ansible_user: ansible
|
||||
ansible_ssh_private_key_file: ~/.ssh/ansible_key
|
||||
ansible_become: true
|
||||
ansible_become_method: sudo
|
||||
|
||||
# Minecraft Configuration
|
||||
# Configuration Minecraft
|
||||
minecraft_version: "1.21.6"
|
||||
minecraft_memory_min: "2G"
|
||||
minecraft_memory_max: "4G"
|
||||
minecraft_type: "spigot"
|
||||
minecraft_user: minecraft
|
||||
minecraft_group: minecraft
|
||||
minecraft_base_dir: /opt/minecraft
|
||||
minecraft_server_dir: /opt/minecraft/server
|
||||
minecraft_sources_dir: /opt/minecraft/sources
|
||||
minecraft_tools_dir: /opt/minecraft/tools
|
||||
minecraft_backup_dir: /opt/minecraft/backups
|
||||
|
||||
# Security
|
||||
ssh_port: 22
|
||||
fail2ban_enabled: true
|
||||
firewall_enabled: true
|
||||
# Configuration Java
|
||||
java_version: 21
|
||||
java_vendor: openjdk
|
||||
|
||||
# Backup settings
|
||||
backup_retention_days: 30
|
||||
backup_retention_weeks: 12
|
||||
backup_retention_months: 6
|
||||
# Configuration Réseau
|
||||
server_port: 25565
|
||||
rcon_port: 25575
|
||||
enable_rcon: true
|
||||
|
||||
# Configuration Backup
|
||||
backup_retention_daily: 7
|
||||
backup_retention_weekly: 4
|
||||
backup_retention_monthly: 3
|
@@ -4,10 +4,12 @@ all:
|
||||
minecraft_servers:
|
||||
hosts:
|
||||
minecraft-prod-01:
|
||||
ansible_host: 192.168.1.100
|
||||
ansible_host: 192.168.1.10
|
||||
ansible_user: ansible
|
||||
ansible_ssh_private_key_file: ~/.ssh/ansible_key
|
||||
minecraft-prod-02:
|
||||
ansible_host: 192.168.1.101
|
||||
ansible_host: 192.168.1.11
|
||||
ansible_user: ansible
|
||||
ansible_ssh_private_key_file: ~/.ssh/ansible_key
|
||||
vars:
|
||||
environment: production
|
||||
minecraft_memory: 4096
|
||||
minecraft_port: 25565
|
@@ -1,18 +1,31 @@
|
||||
---
|
||||
# Environment
|
||||
environment: staging
|
||||
# Variables globales pour le staging
|
||||
ansible_user: ansible
|
||||
ansible_ssh_private_key_file: ~/.ssh/ansible_key
|
||||
ansible_become: true
|
||||
ansible_become_method: sudo
|
||||
|
||||
# Minecraft Configuration
|
||||
# Configuration Minecraft (staging)
|
||||
minecraft_version: "1.21.6"
|
||||
minecraft_memory_min: "1G"
|
||||
minecraft_memory_max: "2G"
|
||||
minecraft_type: "spigot"
|
||||
minecraft_user: minecraft
|
||||
minecraft_group: minecraft
|
||||
minecraft_base_dir: /opt/minecraft
|
||||
minecraft_server_dir: /opt/minecraft/server
|
||||
minecraft_sources_dir: /opt/minecraft/sources
|
||||
minecraft_tools_dir: /opt/minecraft/tools
|
||||
minecraft_backup_dir: /opt/minecraft/backups
|
||||
|
||||
# Security
|
||||
ssh_port: 22
|
||||
fail2ban_enabled: true
|
||||
firewall_enabled: true
|
||||
# Configuration Java
|
||||
java_version: 21
|
||||
java_vendor: openjdk
|
||||
|
||||
# Backup settings
|
||||
backup_retention_days: 7
|
||||
backup_retention_weeks: 4
|
||||
backup_retention_months: 2
|
||||
# Configuration Réseau
|
||||
server_port: 25565
|
||||
rcon_port: 25575
|
||||
enable_rcon: true
|
||||
|
||||
# Configuration Backup
|
||||
backup_retention_daily: 3
|
||||
backup_retention_weekly: 2
|
||||
backup_retention_monthly: 1
|
@@ -4,6 +4,9 @@ all:
|
||||
minecraft_servers:
|
||||
hosts:
|
||||
minecraft-staging-01:
|
||||
ansible_host: 192.168.1.200
|
||||
ansible_host: 192.168.2.10
|
||||
ansible_user: ansible
|
||||
ansible_ssh_private_key_file: ~/.ssh/ansible_key
|
||||
vars:
|
||||
environment: staging
|
||||
minecraft_memory: 2048
|
||||
minecraft_port: 25565
|
Reference in New Issue
Block a user