Add factorio

This commit is contained in:
Alex 2020-07-02 20:46:30 +02:00
parent 82e98d0f51
commit e7a81ae035
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
3 changed files with 21 additions and 3 deletions

View File

@ -52,7 +52,7 @@
frontend:
sock: '/var/run/varnish.sock'
user: '_hitch'
group: '_hitch'
group: 'www-data'
mode: '660'
jail:
user: 'varnish'
@ -60,7 +60,7 @@
backend:
sock: '{{ varnish.frontend.sock }}'
user: '_hitch'
group: '_hitch'
group: 'www-data'
frontend:
port: 443
roles:

View File

@ -6,9 +6,12 @@
- { package: "openjdk-13-jre-headless", state: present }
systemd:
services:
- { name: "paper-server", enabled: true, state: restarted }
- { name: "paper-server", enabled: true, action: restarted }
- { name: "factorio", enabled: true, action: restarted }
file:
- { path: "/etc/paper", owner: "nobody", group: "nogroup", mode: "760", state: directory }
- { path: "/etc/factorio", owner: "nobody", group: "nogroup", mode: "760", state: directory }
- { path: "/etc/factorio/config", owner: "nobody", group: "nogroup", mode: "760", state: directory }
- { path: "{{ minecraft.paths.data }}/plugins", owner: "nobody", group: "nogroup", mode: "760", state: directory }
- { path: "{{ minecraft.paths.data }}/worlds", owner: "nobody", group: "nogroup", mode: "760", state: directory }
- { path: "{{ minecraft.paths.data }}/plugins/Essentials", owner: "nobody", group: "nogroup", mode: "760", state: directory }
@ -19,6 +22,13 @@
- { path: "{{ minecraft.paths.data }}/plugins/bPermissions/global", owner: "nobody", group: "nogroup", mode: "760", state: directory }
mounts:
- { uuid: 'adee3616-5461-4279-b587-fea73ba468a9', dest: '{{ minecraft.paths.data }}', state: 'mounted', fstype: 'xfs' }
- { uuid: '652d7dff-ca35-418d-b6dc-f50814adccba', dest: '{{ factorio.paths.data }}', state: 'mounted', fstype: 'xfs' }
factorio:
paths:
data: "/mnt/factorio"
bind:
address: "0.0.0.0"
port: "{{ global.games.factorio.port }}"
minecraft:
paths:
data: "/mnt/minecraft"
@ -68,10 +78,16 @@
vault:
roles:
- "minecraft"
- "factorio"
firewall:
- { port: "{{ factorio.bind.port }}", ipv: "v4", proto: "udp" }
- { port: "{{ factorio.bind.port }}", ipv: "v6", proto: "udp" }
roles:
- vault
- mounts
- apt
- file
- factorio
- minecraft
- systemd
- firewall

View File

@ -38,3 +38,5 @@ global:
games:
minecraft:
port: 25560
factorio:
port: 2333