diff --git a/coreos-config/playbook.yaml b/coreos-config/playbook.yaml index ee1a6c5..5873824 100644 --- a/coreos-config/playbook.yaml +++ b/coreos-config/playbook.yaml @@ -152,7 +152,9 @@ service: kuma vars: service_name: "tobias" - url: "status.tobiasmanske.de" + urls: + - "status.tobiasmanske.de" + - "monitor.chaoswg.org" - name: Setup Monitoring Kuma 2 hosts: mon1.hel1.chaoswg.org @@ -163,5 +165,5 @@ service: kuma vars: service_name: "istannen" - url: "monitor.ialistannen.de" + urls: [ "monitor.ialistannen.de"] ... diff --git a/coreos-config/roles/compose_project/templates/kuma/docker-compose.yaml b/coreos-config/roles/compose_project/templates/kuma/docker-compose.yaml index 463ee68..cc8629d 100644 --- a/coreos-config/roles/compose_project/templates/kuma/docker-compose.yaml +++ b/coreos-config/roles/compose_project/templates/kuma/docker-compose.yaml @@ -1,5 +1,5 @@ {% set _name = service_name|default("kuma") %} -{% set _url = url|default(kuma.url)|mandatory %} +{% set _urls = urls|default(kuma.urls)|mandatory %} --- services: kuma: @@ -9,7 +9,7 @@ services: - data:/app/data labels: - "traefik.enable=true" - - "traefik.http.routers.kuma-{{ _name }}.rule=Host(`{{ _url | mandatory }}`)" + - "traefik.http.routers.kuma-{{ _name }}.rule={{ _urls | map('regex_replace', '^(.*)$', 'Host(`\\1`)') | join(' || ') }}" - "traefik.http.routers.kuma-{{ _name }}.entryPoints=websecure" - "traefik.http.services.kuma-{{ _name }}.loadbalancer.server.port=3001" networks: