Add another Minecraft server and some related checks
This commit is contained in:
parent
22863e66e7
commit
aa493348d3
@ -8,6 +8,7 @@
|
|||||||
include_tasks: tasks/game/{{ item }}
|
include_tasks: tasks/game/{{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- minecraft-botaniapack2-survival.yml
|
- minecraft-botaniapack2-survival.yml
|
||||||
|
- minecraft-botaniapack2-creative.yml
|
||||||
tags: [ always ]
|
tags: [ always ]
|
||||||
roles:
|
roles:
|
||||||
- role: backup
|
- role: backup
|
||||||
@ -17,4 +18,5 @@
|
|||||||
- /etc
|
- /etc
|
||||||
backup_s3backup_exclude_list_extra:
|
backup_s3backup_exclude_list_extra:
|
||||||
- /data/minecraft/botaniapack2-survival/backups
|
- /data/minecraft/botaniapack2-survival/backups
|
||||||
|
- /data/minecraft/botaniapack2-creative/backups
|
||||||
tags: [ backup ]
|
tags: [ backup ]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: docker deploy minecraft botaniapack2-creative
|
- name: docker deploy minecraft botaniapack2-creative
|
||||||
docker_container:
|
docker_container:
|
||||||
name: botaniapack2-creative
|
name: botaniapack2-creative
|
||||||
state: absent
|
state: started
|
||||||
image: rehashedsalt/minecraft-forge:1.16.5-36.2.22-openjdk11
|
image: rehashedsalt/minecraft-forge:1.16.5-36.2.22-openjdk11
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
pull: yes
|
pull: yes
|
||||||
@ -13,12 +13,12 @@
|
|||||||
JRE_XMS: 3G
|
JRE_XMS: 3G
|
||||||
FORGE_PACK_ZIP: "https://srv.9iron.club/files/packs/1.16.5-botaniapack2/latest.zip"
|
FORGE_PACK_ZIP: "https://srv.9iron.club/files/packs/1.16.5-botaniapack2/latest.zip"
|
||||||
ports:
|
ports:
|
||||||
- "25565:25565/tcp"
|
- "40502:25565/tcp"
|
||||||
- "25565:25565/udp"
|
- "40502:25565/udp"
|
||||||
volumes:
|
volumes:
|
||||||
- /data/minecraft/botaniapack2-creative/backups:/minecraft/backups
|
- /data/minecraft/botaniapack2-creative/backups:/minecraft/backups
|
||||||
- /data/minecraft/botaniapack2-creative/logs:/minecraft/logs
|
- /data/minecraft/botaniapack2-creative/logs:/minecraft/logs
|
||||||
- /data/minecraft/botaniapack2-creative/world:/minecraft/world
|
|
||||||
- /data/minecraft/botaniapack2-creative/ops.json:/minecraft/ops.json
|
- /data/minecraft/botaniapack2-creative/ops.json:/minecraft/ops.json
|
||||||
- /data/minecraft/botaniapack2-creative/server.properties:/minecraft/server.properties
|
- /data/minecraft/botaniapack2-creative/server.properties:/minecraft/server.properties
|
||||||
|
- /data/minecraft/botaniapack2-creative/world:/minecraft/world
|
||||||
tags: [ docker, minecraft, botania, creative ]
|
tags: [ docker, minecraft, botania, creative ]
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
volumes:
|
volumes:
|
||||||
- /data/minecraft/botaniapack2-survival/backups:/minecraft/backups
|
- /data/minecraft/botaniapack2-survival/backups:/minecraft/backups
|
||||||
- /data/minecraft/botaniapack2-survival/logs:/minecraft/logs
|
- /data/minecraft/botaniapack2-survival/logs:/minecraft/logs
|
||||||
- /data/minecraft/botaniapack2-survival/world:/minecraft/world
|
|
||||||
- /data/minecraft/botaniapack2-survival/ops.json:/minecraft/ops.json
|
- /data/minecraft/botaniapack2-survival/ops.json:/minecraft/ops.json
|
||||||
- /data/minecraft/botaniapack2-survival/server.properties:/minecraft/server.properties
|
- /data/minecraft/botaniapack2-survival/server.properties:/minecraft/server.properties
|
||||||
|
- /data/minecraft/botaniapack2-survival/world:/minecraft/world
|
||||||
tags: [ docker, minecraft, botania, survival ]
|
tags: [ docker, minecraft, botania, survival ]
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
- openssh-server
|
- openssh-server
|
||||||
- pwgen
|
- pwgen
|
||||||
- python-is-python3 # God damn you Nextcloud role
|
- python-is-python3 # God damn you Nextcloud role
|
||||||
|
- python2 # Needed for some legacy crap
|
||||||
- python3-apt
|
- python3-apt
|
||||||
- python3-boto
|
- python3-boto
|
||||||
- python3-boto3
|
- python3-boto3
|
||||||
|
@ -152,6 +152,17 @@ define host {
|
|||||||
# Updated: {{ service.value.last_updated }}
|
# Updated: {{ service.value.last_updated }}
|
||||||
{% for tag in service.value.tags %}
|
{% for tag in service.value.tags %}
|
||||||
{# #}
|
{# #}
|
||||||
|
{% if tag.slug == "nagios-checkminecraft" %}
|
||||||
|
{% for port in service.value.ports %}
|
||||||
|
define service {
|
||||||
|
use ansible-generic-service
|
||||||
|
service_description Minecraft - {{ service.value.name }} - {{ port }}
|
||||||
|
check_command check_by_ssh!/usr/local/bin/monitoring-scripts/check_minecraft -H {{ host_name }} -p {{ port }} -m "{{ service.value.description }}" -f -w 3 -c 5
|
||||||
|
host_name {{ host_name }}
|
||||||
|
}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{# #}
|
||||||
{% if tag.slug == "nagios-checkhttp" %}
|
{% if tag.slug == "nagios-checkhttp" %}
|
||||||
{% for port in service.value.ports %}
|
{% for port in service.value.ports %}
|
||||||
define service {
|
define service {
|
||||||
|
Loading…
Reference in New Issue
Block a user