From 57a8a7e6ad4ec7d1400963924189ec6b4473aed9 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Tue, 6 Sep 2022 20:53:36 +0200 Subject: [PATCH 1/3] :wrench: Add IP of BrotherQL label printer to inventory --- inventory.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inventory.yml b/inventory.yml index bfd5b25..b83b9fb 100644 --- a/inventory.yml +++ b/inventory.yml @@ -142,6 +142,8 @@ all: 6132316461393562370a323564316335343231643266373139323161316663313237326261306531 65656162653866383632383265343133626637316566333366386164396465353231636636616335 3461663034653936306666313437323734393361306432623639 + # See https://gitea.n39.eu/Netz39_Admin/config.descartes/src/branch/live/dns_dhcp.txt + brotherql_printer_ip: "172.23.48.53" krypton.n39.eu: server_admin: "admin+krypton@netz39.de" ldap_admin_password: !vault | From c9c9fe732995165c89f19438a49c6af718dba397 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Tue, 6 Sep 2022 20:53:54 +0200 Subject: [PATCH 2/3] :sparkles: Add Web UI for the BrotherQL label printer --- radon.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/radon.yml b/radon.yml index 9a5ee79..26a17dd 100644 --- a/radon.yml +++ b/radon.yml @@ -18,6 +18,9 @@ pwr_meter_pulse_gw_image: "netz39/power-meter-pulse-gateway:0.3.0" + brotherql_host_port: 9004 + brotherql_web_image: "pklaus/brother_ql_web:alpine_9e20b6d" + roles: - role: docker_setup vars: @@ -31,6 +34,7 @@ - name: nodered.n39.eu - name: rabbitmq.n39.eu - name: pwr-meter-pulse-gw-19i.svc.n39.eu + - name: brotherql-web.n39.eu - role: penguineer.dehydrated_cron @@ -164,6 +168,26 @@ proxy_port: 9003 + - name: Setup docker container for BrotherQL Web UI printer + docker_container: + name: brotherql-web + image: "{{ brotherql_web_image }}" + pull: true + restart_policy: unless-stopped + state: started + ports: + - "127.0.0.1:{{ brotherql_host_port }}:8013" + command: " ./brother_ql_web.py --model QL-720NW tcp://{{ brotherql_printer_ip }}" + detach: yes + + - name: Setup proxy site brotherql-web.n39.eu + include_role: + name: setup-http-site-proxy + vars: + site_name: brotherql-web.n39.eu + proxy_port: "{{ brotherql_host_port }}" + + handlers: - name: restart mosquitto docker_container: From 813689cca0f900eb6f1099f2d0e8279facccd503 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Thu, 20 Oct 2022 23:38:08 +0200 Subject: [PATCH 3/3] :wrench: Add ingress entry for brotherql-web.n39.eu --- holmium.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/holmium.yml b/holmium.yml index 92ba397..c8c7156 100644 --- a/holmium.yml +++ b/holmium.yml @@ -24,8 +24,6 @@ - name: uritools-api.n39.eu - name: sl.n39.eu - name: pad.n39.eu - - name: brotherql-web.n39.eu - local: true - name: jabber.n39.eu - name: conference.jabber.n39.eu - name: influx.n39.eu @@ -38,3 +36,5 @@ local: true - name: pwr-meter-pulse-gw-19i.svc.n39.eu local: true + - name: brotherql-web.n39.eu + local: true