From 2585dbffd1569cae627b4324ece43e2b377d2e3c Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Sun, 8 Feb 2026 03:37:01 +0000 Subject: [PATCH] Added the weatherprocessor container to the stack. --- defaults/main.yml | 6 +++++- vars/containers/weatherprocessor.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 vars/containers/weatherprocessor.yml diff --git a/defaults/main.yml b/defaults/main.yml index 51f2699..dd7d07d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -13,7 +13,11 @@ feedstack_server_key_filename: "privkey.pem" feedstack_weatherfeeder_container_image: "harbor.maximumdirect.net/library/weatherfeeder" feedstack_weatherfeeder_container_tag: "latest" -# Define the default agent container image and tag. +# Define the default weatherprocessor container image and tag. +feedstack_weatherprocessor_container_image: "harbor.maximumdirect.net/library/weatherprocessor" +feedstack_weatherprocessor_container_tag: "latest" + +# Define the default NATS container image and tag. feedstack_nats_container_image: "nats" feedstack_nats_container_tag: "linux" diff --git a/vars/containers/weatherprocessor.yml b/vars/containers/weatherprocessor.yml new file mode 100644 index 0000000..54dbf36 --- /dev/null +++ b/vars/containers/weatherprocessor.yml @@ -0,0 +1,26 @@ +--- +weatherprocessor: + + # Define the name of this container. + name: "weatherprocessor" + + # Define the docker image to be used for this container. + image: "{{ feedstack_weatherprocessor_container_image }}:{{ feedstack_weatherprocessor_container_tag }}" + + # Define the path where application data for this container will be stored. + appdata_directory: "{{ docker_appdata_directory }}/weatherprocessor" + + # Define the volumes that should be mounted into the container. + volumes: + - "{{ docker_appdata_directory }}/weatherprocessor/config.yml:/weatherprocessor/config.yml:ro" + + # Define the ports that should be opened to the outside world. + #ports: [] + + # Define environment variables to be passed to the container. + environment_variables: + - "WEATHERPROCESSOR_NATS_URL=nats://nats:4222" + - "WEATHERPROCESSOR_SUBJECT=weatherfeeder" + - "WEATHERPROCESSOR_OUTPUT_FORMAT=yaml" + +...