Add factorio
This commit is contained in:
parent
82e98d0f51
commit
e7a81ae035
@ -52,7 +52,7 @@
|
|||||||
frontend:
|
frontend:
|
||||||
sock: '/var/run/varnish.sock'
|
sock: '/var/run/varnish.sock'
|
||||||
user: '_hitch'
|
user: '_hitch'
|
||||||
group: '_hitch'
|
group: 'www-data'
|
||||||
mode: '660'
|
mode: '660'
|
||||||
jail:
|
jail:
|
||||||
user: 'varnish'
|
user: 'varnish'
|
||||||
@ -60,7 +60,7 @@
|
|||||||
backend:
|
backend:
|
||||||
sock: '{{ varnish.frontend.sock }}'
|
sock: '{{ varnish.frontend.sock }}'
|
||||||
user: '_hitch'
|
user: '_hitch'
|
||||||
group: '_hitch'
|
group: 'www-data'
|
||||||
frontend:
|
frontend:
|
||||||
port: 443
|
port: 443
|
||||||
roles:
|
roles:
|
||||||
|
18
games.yml
18
games.yml
@ -6,9 +6,12 @@
|
|||||||
- { package: "openjdk-13-jre-headless", state: present }
|
- { package: "openjdk-13-jre-headless", state: present }
|
||||||
systemd:
|
systemd:
|
||||||
services:
|
services:
|
||||||
- { name: "paper-server", enabled: true, state: restarted }
|
- { name: "paper-server", enabled: true, action: restarted }
|
||||||
|
- { name: "factorio", enabled: true, action: restarted }
|
||||||
file:
|
file:
|
||||||
- { path: "/etc/paper", owner: "nobody", group: "nogroup", mode: "760", state: directory }
|
- { 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 }}/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 }}/worlds", owner: "nobody", group: "nogroup", mode: "760", state: directory }
|
||||||
- { path: "{{ minecraft.paths.data }}/plugins/Essentials", 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 }
|
- { path: "{{ minecraft.paths.data }}/plugins/bPermissions/global", owner: "nobody", group: "nogroup", mode: "760", state: directory }
|
||||||
mounts:
|
mounts:
|
||||||
- { uuid: 'adee3616-5461-4279-b587-fea73ba468a9', dest: '{{ minecraft.paths.data }}', state: 'mounted', fstype: 'xfs' }
|
- { 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:
|
minecraft:
|
||||||
paths:
|
paths:
|
||||||
data: "/mnt/minecraft"
|
data: "/mnt/minecraft"
|
||||||
@ -68,10 +78,16 @@
|
|||||||
vault:
|
vault:
|
||||||
roles:
|
roles:
|
||||||
- "minecraft"
|
- "minecraft"
|
||||||
|
- "factorio"
|
||||||
|
firewall:
|
||||||
|
- { port: "{{ factorio.bind.port }}", ipv: "v4", proto: "udp" }
|
||||||
|
- { port: "{{ factorio.bind.port }}", ipv: "v6", proto: "udp" }
|
||||||
roles:
|
roles:
|
||||||
- vault
|
- vault
|
||||||
- mounts
|
- mounts
|
||||||
- apt
|
- apt
|
||||||
- file
|
- file
|
||||||
|
- factorio
|
||||||
- minecraft
|
- minecraft
|
||||||
- systemd
|
- systemd
|
||||||
|
- firewall
|
||||||
|
@ -38,3 +38,5 @@ global:
|
|||||||
games:
|
games:
|
||||||
minecraft:
|
minecraft:
|
||||||
port: 25560
|
port: 25560
|
||||||
|
factorio:
|
||||||
|
port: 2333
|
||||||
|
Reference in New Issue
Block a user