diff --git a/radon.yml b/radon.yml index c559993..9c12021 100644 --- a/radon.yml +++ b/radon.yml @@ -16,6 +16,8 @@ rabbitmq_image: "bitnami/rabbitmq:3.10.7" rabbitmq_data: "{{ data_dir }}/rabbitmq" + pwr_meter_pulse_gw_image: "netz39/power-meter-pulse-gateway:0.2.0" + roles: - role: docker_setup vars: @@ -109,6 +111,24 @@ - "{{ rabbitmq_data }}/etc_rabbitmq:/etc/rabbitmq:rw" + - name: Ensure Power Meter Pulse Gateway for 19i room is running + docker_container: + name: pwr-meter-pulse-gw-19i + image: "{{ pwr_meter_pulse_gw_image }}" + ports: +# - 127.0.0.1:9003:8080 + - 9003:8080 + env: + AMQP_HOST: "rabbitmq.n39.eu" + AMQP_USER: "{{ pwr_meter_amqp_user }}" + AMQP_PASS: "{{ pwr_meter_amqp_pass }}" + AMQP_VHOST: "/iot" + PULSE_BINDING: "pwr-meter-pulse-19i" + API_TOKEN: "{{ pwr_meter_api_token }}" + + # TODO HTTPS ingress, when #727 is resolved + + handlers: - name: restart mosquitto docker_container: