summaryrefslogtreecommitdiff
path: root/roles/streaming/icecast/templates/pod-spec.yml.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-04-24 19:27:10 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-04-24 19:27:10 +0200
commit8c0ee8bca2cd460080a1c544de92b644c2856925 (patch)
tree22a3672a134e525999dc6038656c191b6cb72e5c /roles/streaming/icecast/templates/pod-spec.yml.j2
parentsgg-icecast: change icecast contact addr. (diff)
icecast: make shoutcast compatible configs possible
Diffstat (limited to 'roles/streaming/icecast/templates/pod-spec.yml.j2')
-rw-r--r--roles/streaming/icecast/templates/pod-spec.yml.j210
1 files changed, 8 insertions, 2 deletions
diff --git a/roles/streaming/icecast/templates/pod-spec.yml.j2 b/roles/streaming/icecast/templates/pod-spec.yml.j2
index 5dc0b086..bac1ac3b 100644
--- a/roles/streaming/icecast/templates/pod-spec.yml.j2
+++ b/roles/streaming/icecast/templates/pod-spec.yml.j2
@@ -22,8 +22,14 @@ containers:
mountPath: /srv/logs
subPath: logs
ports:
- - containerPort: 8080
- hostPort: {{ item.value.port }}
+{% for listener in item.value.listeners %}
+ - containerPort: {{ listener.port }}
+ hostPort: {{ listener.port }}
+{% if 'shoutcast_mountpoint' in listener %}
+ - containerPort: {{ listener.port + 1 }}
+ hostPort: {{ listener.port + 1 }}
+{% endif %}
+{% endfor %}
volumes:
- name: home