This commit is contained in:
Elouin 2024-12-30 16:12:47 +01:00
commit 9954987968
6 changed files with 55 additions and 0 deletions

8
.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
cachedir/
etc/
log.txt
.bundle/
.kitchen/
vendor/
Gemfile.lock
venv/

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# Mumble Podman Formula
This is a saltstack formula to deploy a mumble murmur server via podman quadlet.

23
mumble/init.sls Normal file
View file

@ -0,0 +1,23 @@
mumble-volume-file-is-present:
file.managed:
- name: /etc/containers/systemd/mumble.volume
- source: salt://mumble/mumble.volume.jinja
- template: jinja
mumble-container-file-is-present:
file.managed:
- name: /etc/containers/systemd/mumble.container
- source: salt://mumble/mumble.container.jinja
- template: jinja
reload-systemd-units-onchange-of-mumble-container-unit-file:
module.wait:
- service.systemctl_reload:
- watch:
- file: mumble-container-file-is-present
mumble-service-running:
service.running:
- name: mumble
- watch:
- module: reload-systemd-units-onchange-of-mumble-container-unit-file

View file

@ -0,0 +1,14 @@
[Unit]
Description=Mumble Server
[Container]
Image={{ salt['pillar.get']('mumble:image:path', 'code.flipdot.org/flipdot/mumble') }}:{{ salt['pillar.get']('mumble:image:version', 'latest') }}
Volume=mumble.volume:/data
PublishPort={{ salt['pillar.get']('mumble:port', "64738") }}:64738/tcp
PublishPort={{ salt['pillar.get']('mumble:port', "64738") }}:64738/udp
[Service]
TimeoutStartSec=900
[Install]
WantedBy=multi-user.target default.target

View file

@ -0,0 +1,2 @@
[Volume]
VolumeName=mumble-data

5
pillar.example Normal file
View file

@ -0,0 +1,5 @@
mumble:
port: 30000
image:
path: code.flipdot.org/flipdot/mumble
version: latest