blob: 0289ec0ea14df96c0e0df4f16439d1f1321e80d7 [file] [log] [blame]
Ilya Kharinfd293c42017-03-14 17:34:12 +04001{% set setup = salt['pillar.get']('devops_portal:setup') %}
2{% set config = salt['pillar.get']('devops_portal:config', default={
Ilya Kharinced98392017-03-16 13:41:18 +04003 "base_dir": "/srv/volumes/devops_portal",
4}, merge=True) %}
Ilya Kharin9954eaf2017-03-06 15:21:07 +04005
Ilya Kharine1cf8542017-03-17 18:37:09 +04006{% macro service_url(endpoint) -%}
Ilya Kharin9600ada2017-03-23 17:30:14 +04007{%- if endpoint.get('https', False) -%}https://{%- else -%}http://{%- endif -%}
Vnaumov1b792de2017-10-06 14:53:55 +03008{%- if endpoint.get('custom_path', None) -%}
9{{ endpoint.address }}:{{ endpoint.port }}/{{ endpoint.custom_path }}
10{%- else -%}
Ilya Kharine1cf8542017-03-17 18:37:09 +040011{{ endpoint.address }}:{{ endpoint.port }}/
Vnaumov1b792de2017-10-06 14:53:55 +030012{%- endif -%}
Ilya Kharine1cf8542017-03-17 18:37:09 +040013{%- endmacro %}
14
Volodymyr Stoiko9c9a6fa2017-08-14 13:41:48 +030015{% macro service_url_dns(endpoint) -%}
16{%- if endpoint.get('https', False) -%}https://{%- else -%}http://{%- endif -%}
17${{ endpoint.address|replace("-", "_") }}:{{ endpoint.port }}
18{%- endmacro %}
19
20
Ilya Kharin9954eaf2017-03-06 15:21:07 +040021{% set services = [
22'artifactory',
23'elasticsearch',
24'gerrit',
Ilya Kharin9954eaf2017-03-06 15:21:07 +040025'jenkins',
Ilya Kharinc45f29c2017-04-05 11:31:04 +040026'pushkin',
Ilya Kharin9954eaf2017-03-06 15:21:07 +040027'riverdelta',
28'rundeck',
Volodymyr Stoiko1f5c61d2017-05-19 13:07:14 +030029'securitymonkey',
Vnaumov1b792de2017-10-06 14:53:55 +030030'grafana',
Ilya Kharind5c1eef2017-06-10 00:15:06 +040031'stacklight-grafana',
32'stacklight-kibana',
Vnaumov1b792de2017-10-06 14:53:55 +030033'stacklight-prometheus',
Volodymyr Stoikoc53c56a2017-06-20 19:01:24 +030034'janitormonkey',
Ilya Kharin9954eaf2017-03-06 15:21:07 +040035] %}