update
This commit is contained in:
17
inventories/production/group_vars/all.yml
Normal file
17
inventories/production/group_vars/all.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
# Configuration globale pour la production
|
||||
environment: production
|
||||
timezone: Europe/Paris
|
||||
|
||||
# Utilisateur Ansible
|
||||
ansible_user: ansible
|
||||
ansible_become: yes
|
||||
ansible_become_method: sudo
|
||||
|
||||
# Configuration SSH
|
||||
ssh_port: 22
|
||||
ssh_allow_users: ["ansible", "minecraft"]
|
||||
|
||||
# Configuration Firewall
|
||||
firewall_enabled: true
|
||||
firewall_default_policy: deny
|
27
inventories/production/group_vars/minecraft_servers.yml
Normal file
27
inventories/production/group_vars/minecraft_servers.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
# 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
|
13
inventories/production/hosts.yml
Normal file
13
inventories/production/hosts.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
all:
|
||||
children:
|
||||
minecraft_servers:
|
||||
hosts:
|
||||
minecraft-prod-01:
|
||||
ansible_host: 192.168.1.100
|
||||
ansible_user: ansible
|
||||
ansible_ssh_private_key_file: ~/.ssh/ansible_key
|
||||
minecraft-prod-02:
|
||||
ansible_host: 192.168.1.101
|
||||
ansible_user: ansible
|
||||
ansible_ssh_private_key_file: ~/.ssh/ansible_key
|
17
inventories/staging/group_vars/all.yml
Normal file
17
inventories/staging/group_vars/all.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
# Configuration globale pour le staging
|
||||
environment: staging
|
||||
timezone: Europe/Paris
|
||||
|
||||
# Utilisateur Ansible
|
||||
ansible_user: ansible
|
||||
ansible_become: yes
|
||||
ansible_become_method: sudo
|
||||
|
||||
# Configuration SSH
|
||||
ssh_port: 22
|
||||
ssh_allow_users: ["ansible", "minecraft"]
|
||||
|
||||
# Configuration Firewall
|
||||
firewall_enabled: true
|
||||
firewall_default_policy: deny
|
27
inventories/staging/group_vars/minecraft_servers.yml
Normal file
27
inventories/staging/group_vars/minecraft_servers.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
# 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
|
9
inventories/staging/hosts.yml
Normal file
9
inventories/staging/hosts.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
all:
|
||||
children:
|
||||
minecraft_servers:
|
||||
hosts:
|
||||
minecraft-staging-01:
|
||||
ansible_host: 192.168.1.200
|
||||
ansible_user: ansible
|
||||
ansible_ssh_private_key_file: ~/.ssh/ansible_key
|
Reference in New Issue
Block a user