From ec11f51a72a1db59e639ad0f3afa50ab2fe42ecb Mon Sep 17 00:00:00 2001 From: Andrew Bonney Date: Thu, 22 Aug 2024 10:50:13 +0100 Subject: [PATCH] mcapi_proxy: allow overriding of systemd service environment Various configuration options for this service are set using environment variables, including: POD_IP, PROXY_BIND, PROXY_PORT. This patch exposes a variable which can be used to set these via the systemd service unit. Change-Id: I5f649c3894c63e13649f8f12d4dd839b22ba6cfc --- mcapi_vexxhost/roles/proxy/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/mcapi_vexxhost/roles/proxy/tasks/main.yml b/mcapi_vexxhost/roles/proxy/tasks/main.yml index 6d06af5a..371752d1 100644 --- a/mcapi_vexxhost/roles/proxy/tasks/main.yml +++ b/mcapi_vexxhost/roles/proxy/tasks/main.yml @@ -99,3 +99,4 @@ execstarts: - "{{ _bin ~ '/magnum-cluster-api-proxy' }}" start_order: 1 + environment: "{{ magnum_cluster_api_proxy_environment | default({}) }}"