Add the service_url marco to render endpoints
Change-Id: Iccc8ece2d99a656d2cfdfd574de91ae890c7868e
diff --git a/devops_portal/map.jinja b/devops_portal/map.jinja
index fd15d42..aff3f3a 100644
--- a/devops_portal/map.jinja
+++ b/devops_portal/map.jinja
@@ -3,6 +3,11 @@
"base_dir": "/srv/volumes/devops_portal",
}, merge=True) %}
+{% macro service_url(endpoint) -%}
+{%- if endpoint.get('ssl', {}).enabled|default(False) -%}https://{%- else -%}http://{%- endif -%}
+{{ endpoint.address }}:{{ endpoint.port }}/
+{%- endmacro %}
+
{% set services = [
'artifactory',
'elasticsearch',