change
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
---
|
||||
# Variables globales pour la production
|
||||
# Configuration Ansible
|
||||
ansible_user: ansible
|
||||
ansible_ssh_private_key_file: ~/.ssh/ansible_key
|
||||
ansible_become: true
|
||||
ansible_become_method: sudo
|
||||
|
||||
@@ -16,6 +15,10 @@ minecraft_sources_dir: /opt/minecraft/sources
|
||||
minecraft_tools_dir: /opt/minecraft/tools
|
||||
minecraft_backup_dir: /opt/minecraft/backups
|
||||
|
||||
# Configuration mémoire
|
||||
minecraft_memory_min: 2048
|
||||
minecraft_memory_max: 4096
|
||||
|
||||
# Configuration Java
|
||||
java_version: 21
|
||||
java_vendor: openjdk
|
||||
@@ -24,8 +27,50 @@ java_vendor: openjdk
|
||||
server_port: 25565
|
||||
rcon_port: 25575
|
||||
enable_rcon: true
|
||||
rcon_password: "{{ vault_rcon_password | default('ChangeMe123!') }}"
|
||||
|
||||
# Configuration serveur
|
||||
server_name: "Production Minecraft Server"
|
||||
max_players: 20
|
||||
view_distance: 10
|
||||
gamemode: survival
|
||||
difficulty: normal
|
||||
enable_command_block: false
|
||||
online_mode: true
|
||||
pvp: true
|
||||
white_list: false
|
||||
|
||||
# Configuration Backup
|
||||
backup_retention_daily: 7
|
||||
backup_retention_weekly: 4
|
||||
backup_retention_monthly: 3
|
||||
backup_retention_monthly: 3
|
||||
backup_time_daily: "03:00"
|
||||
backup_time_weekly: "04:00"
|
||||
backup_time_monthly: "05:00"
|
||||
|
||||
# Configuration sécurité
|
||||
ssh_port: 22
|
||||
firewall_allowed_tcp_ports:
|
||||
- 22
|
||||
- 25565
|
||||
- 25575
|
||||
firewall_allowed_udp_ports: []
|
||||
|
||||
# Administrateurs SSH (à remplir avec vos clés)
|
||||
admin_ssh_keys: []
|
||||
# - name: admin1
|
||||
# key: "ssh-rsa AAAAB3..."
|
||||
|
||||
# Opérateurs Minecraft (à remplir)
|
||||
minecraft_ops: []
|
||||
# - name: "PlayerName"
|
||||
# uuid: "uuid-here"
|
||||
# level: 4
|
||||
# bypassesPlayerLimit: true
|
||||
|
||||
# Plugins à installer
|
||||
minecraft_plugins_list:
|
||||
- name: "EssentialsX"
|
||||
url: "https://github.com/EssentialsX/Essentials/releases/latest/download/EssentialsX.jar"
|
||||
- name: "Vault"
|
||||
url: "https://github.com/MilkBowl/Vault/releases/latest/download/Vault.jar"
|
@@ -1,27 +0,0 @@
|
||||
---
|
||||
# Configuration spécifique aux serveurs Minecraft
|
||||
minecraft_version: "1.21.6"
|
||||
minecraft_user: minecraft
|
||||
minecraft_group: minecraft
|
||||
minecraft_home: /opt/minecraft
|
||||
|
||||
# Chemins
|
||||
minecraft_sources_dir: "{{ minecraft_home }}/sources"
|
||||
minecraft_server_dir: "{{ minecraft_home }}/server"
|
||||
minecraft_tools_dir: "{{ minecraft_home }}/tools"
|
||||
minecraft_backups_dir: "{{ minecraft_home }}/backups"
|
||||
|
||||
# Configuration serveur
|
||||
minecraft_memory_min: "1G"
|
||||
minecraft_memory_max: "4G"
|
||||
minecraft_port: 25565
|
||||
minecraft_rcon_port: 25575
|
||||
minecraft_rcon_password: "{{ vault_minecraft_rcon_password }}"
|
||||
|
||||
# Java
|
||||
java_version: 21
|
||||
|
||||
# Backups
|
||||
backup_retention_daily: 7
|
||||
backup_retention_weekly: 4
|
||||
backup_retention_monthly: 6
|
@@ -5,11 +5,8 @@ all:
|
||||
hosts:
|
||||
minecraft-prod-01:
|
||||
ansible_host: 192.168.1.10
|
||||
ansible_user: ansible
|
||||
minecraft-prod-02:
|
||||
ansible_host: 192.168.1.11
|
||||
ansible_user: ansible
|
||||
vars:
|
||||
ansible_user: ansible
|
||||
environment: production
|
||||
minecraft_memory: 4096
|
||||
minecraft_port: 25565
|
@@ -1,11 +1,10 @@
|
||||
---
|
||||
# Variables globales pour le staging
|
||||
# Configuration Ansible
|
||||
ansible_user: ansible
|
||||
ansible_ssh_private_key_file: ~/.ssh/ansible_key
|
||||
ansible_become: true
|
||||
ansible_become_method: sudo
|
||||
|
||||
# Configuration Minecraft (staging)
|
||||
# Configuration Minecraft
|
||||
minecraft_version: "1.21.6"
|
||||
minecraft_type: "spigot"
|
||||
minecraft_user: minecraft
|
||||
@@ -16,6 +15,10 @@ minecraft_sources_dir: /opt/minecraft/sources
|
||||
minecraft_tools_dir: /opt/minecraft/tools
|
||||
minecraft_backup_dir: /opt/minecraft/backups
|
||||
|
||||
# Configuration mémoire
|
||||
minecraft_memory_min: 2048
|
||||
minecraft_memory_max: 4096
|
||||
|
||||
# Configuration Java
|
||||
java_version: 21
|
||||
java_vendor: openjdk
|
||||
@@ -24,8 +27,50 @@ java_vendor: openjdk
|
||||
server_port: 25565
|
||||
rcon_port: 25575
|
||||
enable_rcon: true
|
||||
rcon_password: "{{ vault_rcon_password | default('ChangeMe123!') }}"
|
||||
|
||||
# Configuration serveur
|
||||
server_name: "Production Minecraft Server"
|
||||
max_players: 20
|
||||
view_distance: 10
|
||||
gamemode: survival
|
||||
difficulty: normal
|
||||
enable_command_block: false
|
||||
online_mode: true
|
||||
pvp: true
|
||||
white_list: false
|
||||
|
||||
# Configuration Backup
|
||||
backup_retention_daily: 3
|
||||
backup_retention_weekly: 2
|
||||
backup_retention_monthly: 1
|
||||
backup_retention_daily: 7
|
||||
backup_retention_weekly: 4
|
||||
backup_retention_monthly: 3
|
||||
backup_time_daily: "03:00"
|
||||
backup_time_weekly: "04:00"
|
||||
backup_time_monthly: "05:00"
|
||||
|
||||
# Configuration sécurité
|
||||
ssh_port: 22
|
||||
firewall_allowed_tcp_ports:
|
||||
- 22
|
||||
- 25565
|
||||
- 25575
|
||||
firewall_allowed_udp_ports: []
|
||||
|
||||
# Administrateurs SSH (à remplir avec vos clés)
|
||||
admin_ssh_keys: []
|
||||
# - name: admin1
|
||||
# key: "ssh-rsa AAAAB3..."
|
||||
|
||||
# Opérateurs Minecraft (à remplir)
|
||||
minecraft_ops: []
|
||||
# - name: "PlayerName"
|
||||
# uuid: "uuid-here"
|
||||
# level: 4
|
||||
# bypassesPlayerLimit: true
|
||||
|
||||
# Plugins à installer
|
||||
minecraft_plugins_list:
|
||||
- name: "EssentialsX"
|
||||
url: "https://github.com/EssentialsX/Essentials/releases/latest/download/EssentialsX.jar"
|
||||
- name: "Vault"
|
||||
url: "https://github.com/MilkBowl/Vault/releases/latest/download/Vault.jar"
|
@@ -1,27 +0,0 @@
|
||||
---
|
||||
# Configuration spécifique aux serveurs Minecraft de staging
|
||||
minecraft_version: "1.21.6"
|
||||
minecraft_user: minecraft
|
||||
minecraft_group: minecraft
|
||||
minecraft_home: /opt/minecraft
|
||||
|
||||
# Chemins
|
||||
minecraft_sources_dir: "{{ minecraft_home }}/sources"
|
||||
minecraft_server_dir: "{{ minecraft_home }}/server"
|
||||
minecraft_tools_dir: "{{ minecraft_home }}/tools"
|
||||
minecraft_backups_dir: "{{ minecraft_home }}/backups"
|
||||
|
||||
# Configuration serveur (plus petite pour staging)
|
||||
minecraft_memory_min: "512M"
|
||||
minecraft_memory_max: "2G"
|
||||
minecraft_port: 25565
|
||||
minecraft_rcon_port: 25575
|
||||
minecraft_rcon_password: "{{ vault_minecraft_rcon_password }}"
|
||||
|
||||
# Java
|
||||
java_version: 21
|
||||
|
||||
# Backups (retention plus courte en staging)
|
||||
backup_retention_daily: 3
|
||||
backup_retention_weekly: 2
|
||||
backup_retention_monthly: 1
|
@@ -5,8 +5,8 @@ all:
|
||||
hosts:
|
||||
minecraft-staging-01:
|
||||
ansible_host: 192.168.2.10
|
||||
ansible_user: ansible
|
||||
vars:
|
||||
ansible_user: ansible
|
||||
environment: staging
|
||||
minecraft_memory: 2048
|
||||
minecraft_port: 25565
|
Reference in New Issue
Block a user