From ea2e98e6ae61dce3a3af1da756f9ee683100459a Mon Sep 17 00:00:00 2001 From: Salt Date: Sat, 6 Nov 2021 14:24:57 -0500 Subject: [PATCH] Add Hexxit server, removing the tmod one --- playbooks/prod_game.yml | 4 ++-- playbooks/tasks/game/hexxit2-survival.yml | 24 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 playbooks/tasks/game/hexxit2-survival.yml diff --git a/playbooks/prod_game.yml b/playbooks/prod_game.yml index 754a4c6..854b111 100755 --- a/playbooks/prod_game.yml +++ b/playbooks/prod_game.yml @@ -2,10 +2,10 @@ # vim:ft=ansible: # Game servers --- -- hosts: tmod1.dallas.mgmt.desu.ltd +- hosts: game1.dallas.mgmt.desu.ltd tasks: - name: include tasks for gameservers include_tasks: tasks/game/{{ item }} with_items: - - terraria-fargo.yml + - hexxit2-survival.yml tags: [ always ] diff --git a/playbooks/tasks/game/hexxit2-survival.yml b/playbooks/tasks/game/hexxit2-survival.yml new file mode 100644 index 0000000..a17630d --- /dev/null +++ b/playbooks/tasks/game/hexxit2-survival.yml @@ -0,0 +1,24 @@ +# vim:ft=ansible: +- name: docker deploy minecraft hexxit2-survival + docker_container: + name: hexxit2-survival + state: started + image: rehashedsalt/minecraft-forge:1.12.2-14.23.5.2855-master + restart_policy: unless-stopped + pull: yes + env: + TZ: "America/Chicago" + ARGS: "-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1" + JRE_XMX: 5G + JRE_XMS: 3G + FORGE_PACK_ZIP: "https://servers.technicpack.net/Technic/servers/hexxit-2/Hexxit-II_Server_v1.1.0.zip" + ports: + - "25565:25565/tcp" + - "25565:25565/udp" + volumes: + - /data/minecraft/hexxit2-survival/backups:/minecraft/backups + - /data/minecraft/hexxit2-survival/logs:/minecraft/logs + - /data/minecraft/hexxit2-survival/world:/minecraft/world + - /data/minecraft/hexxit2-survival/ops.json:/minecraft/ops.json + - /data/minecraft/hexxit2-survival/server.properties:/minecraft/server.properties + tags: [ docker, minecraft, hexxit, survival ]