Init
This commit is contained in:
commit
9954987968
6 changed files with 55 additions and 0 deletions
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
cachedir/
|
||||||
|
etc/
|
||||||
|
log.txt
|
||||||
|
.bundle/
|
||||||
|
.kitchen/
|
||||||
|
vendor/
|
||||||
|
Gemfile.lock
|
||||||
|
venv/
|
3
README.md
Normal file
3
README.md
Normal 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
23
mumble/init.sls
Normal 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
|
14
mumble/mumble.container.jinja
Normal file
14
mumble/mumble.container.jinja
Normal 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
|
2
mumble/mumble.volume.jinja
Normal file
2
mumble/mumble.volume.jinja
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[Volume]
|
||||||
|
VolumeName=mumble-data
|
5
pillar.example
Normal file
5
pillar.example
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
mumble:
|
||||||
|
port: 30000
|
||||||
|
image:
|
||||||
|
path: code.flipdot.org/flipdot/mumble
|
||||||
|
version: latest
|
Loading…
Reference in a new issue