Merge pull request 'Add WebUI for the BrotherQL label printer' (!43) from brotherql into master

Reviewed-on: https://gitea.n39.eu/Netz39_Admin/netz39-infra-ansible/pulls/43
Reviewed-by: dkdent <dkdent@netz39.de>
This commit is contained in:
Stefan Haun 2022-10-23 22:29:35 +00:00
commit c49860bef8
3 changed files with 28 additions and 2 deletions

View file

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

View file

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

View file

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