Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit cf3d848e authored by David Delassus's avatar David Delassus
Browse files

:sparkles: add ability to add extra environment variables and labels to proxy containers

parent 62a5f1f0
No related branches found
No related tags found
1 merge request!15:sparkles: Add ability to override WAF/Proxy containers global configuration per environment
......@@ -60,6 +60,12 @@ RPS-related Inventory
"rps_deploy_environments[].name", "Name of the environment (ie. test, dev, acceptance, production, ...)", ""
"rps_deploy_environments[].via", "Name of the gateway the environment is accessed from (ie. webcloud, intracloud)", ""
"rps_deploy_environments[].dns_zone", "DNS zone used by the environment", ""
"rps_deploy_environments[].proxy_env", "List of extra environment variables to add to the Proxy container", "``[]``"
"rps_deploy_environments[].proxy_env[].var_name", "Variable name", ""
"rps_deploy_environments[].proxy_env[].value", "Variable value", ""
"rps_deploy_environments[].proxy_labels", "List of extra labels to add to the Proxy container", "``[]``"
"rps_deploy_environments[].proxy_labels[].key", "Label name", ""
"rps_deploy_environments[].proxy_labels[].value", "Label value", ""
"rps_proxy_docker_registry", "Name of the Docker registry in Netbox", "``code.europa.eu/rps``"
"rps_proxy_docker_registry_serveraddress", "Address of the Docker registry", "``https://code.europa.eu:4567/v2/``"
"rps_proxy_docker_registry_username", "Username to access the Docker registry", ""
......
......@@ -106,11 +106,11 @@
image: "{{ docker_image.id }}"
host: "{{ docker_host.id }}"
hostname: "{{ docker_container_hostname }}"
env: "{{ docker_container_env }}"
env: "{{ docker_container_env + rps_env.proxy_env | default([]) }}"
binds: "{{ docker_container_binds }}"
mounts: []
network_settings: "{{ docker_container_network_settings }}"
labels: "{{ docker_container_labels }}"
labels: "{{ docker_container_labels + rps_env.proxy_labels | default([]) }}"
restart_policy: "always"
body_format: json
status_code: 200
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment