add data folder creation

This commit is contained in:
Elouin 2024-10-20 17:07:06 +02:00
parent ca39f2d2a1
commit 5d81d08d9e

View file

@ -1,21 +1,27 @@
Ensure git is installed:
ensure-git-is-installed:
pkg.installed:
- name: git
mumble docker git repository is available and up to date:
mumble-docker-git-repository-is-available-and-up-to-date:
git.latest:
- name: https://code.flipdot.org/flipdot/mumble-docker.git
- target: /opt/mumble-dockerfile
mumble docker image was build and is available:
mumble-data-directory-exists:
file.directory:
- name: /opt/mumble/data
- makedirs: True
mumble-docker-image-was-build-and-is-available:
docker_image.present:
- name: flipdot/mumble
- tag: latest
- build: /opt/mumble-dockerfile
mumble docker container is running:
mumble-docker-container-is-running:
docker_container.running:
- name: flipdot/mumble
- name: mumble
- image: flipdot/mumble:latest
- binds: /opt/mumble/data:/data
- port_bindings:
- 64738:64738