init
This commit is contained in:
commit
ee49bfe926
4 changed files with 54 additions and 0 deletions
3
README.md
Normal file
3
README.md
Normal 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
26
mumble/docker.sls
Normal 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
25
mumble/init.sls
Normal 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
0
pillar.example
Normal file
Loading…
Reference in a new issue