mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 20:41:36 +01:00
feat: move soundlib to kube1 container
This commit is contained in:
@@ -41,6 +41,11 @@ smtp_service_pass: HISTORY_PURGED_SECRET
|
|||||||
|
|
||||||
pki_domain: pki.atlantishq.de
|
pki_domain: pki.atlantishq.de
|
||||||
|
|
||||||
|
SOUNDLIB_AWS_ACCESS_KEY_ID: HISTORY_PURGED_SECRET
|
||||||
|
SOUNDLIB_AWS_SECRET_ACCESS_KEY: HISTORY_PURGED_SECRET
|
||||||
|
SOUNDLIB_S3_ENDPOINT: HISTORY_PURGED_SECRET
|
||||||
|
|
||||||
|
|
||||||
# overwritten in monitoring master group var
|
# overwritten in monitoring master group var
|
||||||
monitoring_master: false
|
monitoring_master: false
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,7 @@
|
|||||||
- reactive-resume
|
- reactive-resume
|
||||||
- hedgedoc
|
- hedgedoc
|
||||||
- atlantis-verify
|
- atlantis-verify
|
||||||
|
- soundlib-interface
|
||||||
|
|
||||||
- name: Copy AtlantisHub config
|
- name: Copy AtlantisHub config
|
||||||
copy:
|
copy:
|
||||||
@@ -95,6 +96,7 @@
|
|||||||
- reactive-resume
|
- reactive-resume
|
||||||
- hedgedoc
|
- hedgedoc
|
||||||
- atlantis-verify
|
- atlantis-verify
|
||||||
|
- soundlib-interface
|
||||||
|
|
||||||
- name: Copy compose templates
|
- name: Copy compose templates
|
||||||
template:
|
template:
|
||||||
@@ -114,6 +116,7 @@
|
|||||||
- reactive-resume
|
- reactive-resume
|
||||||
- hedgedoc
|
- hedgedoc
|
||||||
- atlantis-verify
|
- atlantis-verify
|
||||||
|
- soundlib-interface
|
||||||
|
|
||||||
- name: Log into private registry
|
- name: Log into private registry
|
||||||
docker_login:
|
docker_login:
|
||||||
@@ -141,6 +144,7 @@
|
|||||||
- reactive-resume
|
- reactive-resume
|
||||||
- hedgedoc
|
- hedgedoc
|
||||||
- atlantis-verify
|
- atlantis-verify
|
||||||
|
- soundlib-interface
|
||||||
|
|
||||||
- name: OAuth2Proxy directories
|
- name: OAuth2Proxy directories
|
||||||
file:
|
file:
|
||||||
@@ -153,6 +157,7 @@
|
|||||||
- grafana
|
- grafana
|
||||||
- async-icinga
|
- async-icinga
|
||||||
- atlantis-verify
|
- atlantis-verify
|
||||||
|
- soundlib-interface
|
||||||
|
|
||||||
- name: include services ports
|
- name: include services ports
|
||||||
include_vars: services.yaml
|
include_vars: services.yaml
|
||||||
@@ -167,6 +172,7 @@
|
|||||||
- grafana
|
- grafana
|
||||||
- async-icinga
|
- async-icinga
|
||||||
- atlantis-verify
|
- atlantis-verify
|
||||||
|
- soundlib-interface
|
||||||
|
|
||||||
- name: Deploy OAuth2Proxy
|
- name: Deploy OAuth2Proxy
|
||||||
community.docker.docker_compose:
|
community.docker.docker_compose:
|
||||||
@@ -178,3 +184,4 @@
|
|||||||
- grafana
|
- grafana
|
||||||
- async-icinga
|
- async-icinga
|
||||||
- atlantis-verify
|
- atlantis-verify
|
||||||
|
- soundlib-interface
|
||||||
|
|||||||
14
roles/docker-deployments/templates/soundlib-interface.yaml
Normal file
14
roles/docker-deployments/templates/soundlib-interface.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
soundlib:
|
||||||
|
image: harbor-registry.atlantishq.de/atlantishq/atlantis-soundlib:latest
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "6014:5000"
|
||||||
|
environment:
|
||||||
|
S3_BUCKET: soundlib
|
||||||
|
AWS_ACCESS_KEY_ID: {{ SOUNDLIB_AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: {{ SOUNDLIB_AWS_SECRET_ACCESS_KEY }}
|
||||||
|
S3_ENDPOINT: {{ SOUNDLIB_S3_ENDPOINT }}
|
||||||
|
volumes:
|
||||||
|
- /data/soundlib/:/app/instance/
|
||||||
@@ -42,7 +42,6 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- python-flask-picture-factory
|
- python-flask-picture-factory
|
||||||
- simple-log-server
|
- simple-log-server
|
||||||
- soundlib-interface
|
|
||||||
|
|
||||||
- name: Ensure Ownership to www-data
|
- name: Ensure Ownership to www-data
|
||||||
file:
|
file:
|
||||||
@@ -53,7 +52,6 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- python-flask-picture-factory
|
- python-flask-picture-factory
|
||||||
- simple-log-server
|
- simple-log-server
|
||||||
- soundlib-interface
|
|
||||||
|
|
||||||
- name: Deploy OIDC config (config)
|
- name: Deploy OIDC config (config)
|
||||||
template:
|
template:
|
||||||
@@ -64,7 +62,6 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- python-flask-picture-factory
|
- python-flask-picture-factory
|
||||||
- simple-log-server
|
- simple-log-server
|
||||||
- soundlib-interface
|
|
||||||
|
|
||||||
- name: SLS Config
|
- name: SLS Config
|
||||||
copy:
|
copy:
|
||||||
@@ -82,7 +79,6 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- python-flask-picture-factory
|
- python-flask-picture-factory
|
||||||
- simple-log-server
|
- simple-log-server
|
||||||
- soundlib-interface
|
|
||||||
|
|
||||||
- name: OAuth2Proxy directories
|
- name: OAuth2Proxy directories
|
||||||
file:
|
file:
|
||||||
@@ -92,7 +88,6 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- python-flask-picture-factory
|
- python-flask-picture-factory
|
||||||
- simple-log-server
|
- simple-log-server
|
||||||
- soundlib-interface
|
|
||||||
|
|
||||||
- name: Deploy OAuth2Proxy compose files
|
- name: Deploy OAuth2Proxy compose files
|
||||||
template:
|
template:
|
||||||
@@ -100,7 +95,6 @@
|
|||||||
dest: "/opt/oauth2proxy/{{ item }}/docker-compose.yaml"
|
dest: "/opt/oauth2proxy/{{ item }}/docker-compose.yaml"
|
||||||
with_items:
|
with_items:
|
||||||
- simple-log-server
|
- simple-log-server
|
||||||
- soundlib-interface
|
|
||||||
- python-flask-picture-factory
|
- python-flask-picture-factory
|
||||||
|
|
||||||
- name: Template Systemd Units
|
- name: Template Systemd Units
|
||||||
@@ -112,13 +106,11 @@
|
|||||||
path : "/var/www/python-flask-picture-factory", external_oidc : true }
|
path : "/var/www/python-flask-picture-factory", external_oidc : true }
|
||||||
- { name : "serien-ampel", path : "/var/www/serien-ampel" }
|
- { name : "serien-ampel", path : "/var/www/serien-ampel" }
|
||||||
- { name : "simple-log-server", path : "/var/www/simple-log-server", external_oidc : true }
|
- { name : "simple-log-server", path : "/var/www/simple-log-server", external_oidc : true }
|
||||||
- { name : "soundlib-interface", path : "/var/www/soundlib-interface", external_oidc : true }
|
|
||||||
notify:
|
notify:
|
||||||
- daemon reload
|
- daemon reload
|
||||||
- systemctl restart image-factory
|
- systemctl restart image-factory
|
||||||
- systemctl restart serien-ampel
|
- systemctl restart serien-ampel
|
||||||
- systemctl restart simple-log-server
|
- systemctl restart simple-log-server
|
||||||
- systemctl restart soundlib-interface
|
|
||||||
|
|
||||||
- meta: flush_handlers
|
- meta: flush_handlers
|
||||||
|
|
||||||
@@ -127,7 +119,6 @@
|
|||||||
project_src: /opt/oauth2proxy/{{ item }}/
|
project_src: /opt/oauth2proxy/{{ item }}/
|
||||||
pull: true
|
pull: true
|
||||||
with_items:
|
with_items:
|
||||||
- soundlib-interface
|
|
||||||
- simple-log-server
|
- simple-log-server
|
||||||
- python-flask-picture-factory
|
- python-flask-picture-factory
|
||||||
|
|
||||||
@@ -140,7 +131,6 @@
|
|||||||
- python-flask-picture-factory
|
- python-flask-picture-factory
|
||||||
- serien-ampel
|
- serien-ampel
|
||||||
- simple-log-server
|
- simple-log-server
|
||||||
- soundlib-interface
|
|
||||||
|
|
||||||
- name: event poller cronjob
|
- name: event poller cronjob
|
||||||
cron:
|
cron:
|
||||||
|
|||||||
@@ -5,8 +5,6 @@ services:
|
|||||||
port: 5001
|
port: 5001
|
||||||
simple-log-server:
|
simple-log-server:
|
||||||
port: 5002
|
port: 5002
|
||||||
soundlib-interface:
|
|
||||||
port: 5003
|
|
||||||
cert-manager:
|
cert-manager:
|
||||||
port: 5000
|
port: 5000
|
||||||
tmnf-replay-server:
|
tmnf-replay-server:
|
||||||
@@ -23,3 +21,5 @@ services:
|
|||||||
port: 5006
|
port: 5006
|
||||||
atlantis-verify:
|
atlantis-verify:
|
||||||
port: 5013
|
port: 5013
|
||||||
|
soundlib-interface:
|
||||||
|
port: 5014
|
||||||
|
|||||||
Reference in New Issue
Block a user