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 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 | 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: