This commit is contained in:
Elouin 2024-06-02 15:25:59 +02:00
commit ee49bfe926
4 changed files with 54 additions and 0 deletions

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# Mumble formula
Salt formula that sets up mumble, using our [docker image](https://code.flipdot.org/flipdot/mumble-docker).

26
mumble/docker.sls Normal file
View file

@ -0,0 +1,26 @@
{% set docker = {
'Debian':
{'pkg': 'docker.io'},
'Suse':
{'pkg': 'docker'},
'RedHat':
{'pkg': 'docker'}
} %}
docker installed:
pkg.installed:
- name: {{ docker.pkg }}
python pip installed:
pkg.installed:
- name: python3-pip
python docker installed:
pip.installed:
- name: docker-py
- require:
- pkg: python pip installed
docker service running:
service.running:
- name: docker

25
mumble/init.sls Normal file
View file

@ -0,0 +1,25 @@
include:
- mumble.docker
Ensure git is installed:
pkg.installed:
- name: git
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:
docker_image.present:
- name: flipdot/mumble
- tag: latest
- build: /opt/mumble-dockerfile
mumble docker container is running:
docker_container.running:
- name: flipdot/mumble
- binds: /opt/mumble/data:/data
- port_bindings:
- 64738:64738
- 64738:64738/udp

0
pillar.example Normal file
View file