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
This commit is contained in:
Andrew Bonney 2024-08-22 10:50:13 +01:00
parent 818df7b1a8
commit ec11f51a72

View File

@ -99,3 +99,4 @@
execstarts:
- "{{ _bin ~ '/magnum-cluster-api-proxy' }}"
start_order: 1
environment: "{{ magnum_cluster_api_proxy_environment | default({}) }}"