Ilya Kharin | fd293c4 | 2017-03-14 17:34:12 +0400 | [diff] [blame] | 1 | {% set setup = salt['pillar.get']('devops_portal:setup') %} |
| 2 | {% set config = salt['pillar.get']('devops_portal:config', default={ |
Ilya Kharin | ced9839 | 2017-03-16 13:41:18 +0400 | [diff] [blame] | 3 | "base_dir": "/srv/volumes/devops_portal", |
| 4 | }, merge=True) %} |
Ilya Kharin | 9954eaf | 2017-03-06 15:21:07 +0400 | [diff] [blame] | 5 | |
Ilya Kharin | e1cf854 | 2017-03-17 18:37:09 +0400 | [diff] [blame] | 6 | {% macro service_url(endpoint) -%} |
Ilya Kharin | 9600ada | 2017-03-23 17:30:14 +0400 | [diff] [blame] | 7 | {%- if endpoint.get('https', False) -%}https://{%- else -%}http://{%- endif -%} |
Vnaumov | 1b792de | 2017-10-06 14:53:55 +0300 | [diff] [blame^] | 8 | {%- if endpoint.get('custom_path', None) -%} |
| 9 | {{ endpoint.address }}:{{ endpoint.port }}/{{ endpoint.custom_path }} |
| 10 | {%- else -%} |
Ilya Kharin | e1cf854 | 2017-03-17 18:37:09 +0400 | [diff] [blame] | 11 | {{ endpoint.address }}:{{ endpoint.port }}/ |
Vnaumov | 1b792de | 2017-10-06 14:53:55 +0300 | [diff] [blame^] | 12 | {%- endif -%} |
Ilya Kharin | e1cf854 | 2017-03-17 18:37:09 +0400 | [diff] [blame] | 13 | {%- endmacro %} |
| 14 | |
Volodymyr Stoiko | 9c9a6fa | 2017-08-14 13:41:48 +0300 | [diff] [blame] | 15 | {% 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 Kharin | 9954eaf | 2017-03-06 15:21:07 +0400 | [diff] [blame] | 21 | {% set services = [ |
| 22 | 'artifactory', |
| 23 | 'elasticsearch', |
| 24 | 'gerrit', |
Ilya Kharin | 9954eaf | 2017-03-06 15:21:07 +0400 | [diff] [blame] | 25 | 'jenkins', |
Ilya Kharin | c45f29c | 2017-04-05 11:31:04 +0400 | [diff] [blame] | 26 | 'pushkin', |
Ilya Kharin | 9954eaf | 2017-03-06 15:21:07 +0400 | [diff] [blame] | 27 | 'riverdelta', |
| 28 | 'rundeck', |
Volodymyr Stoiko | 1f5c61d | 2017-05-19 13:07:14 +0300 | [diff] [blame] | 29 | 'securitymonkey', |
Vnaumov | 1b792de | 2017-10-06 14:53:55 +0300 | [diff] [blame^] | 30 | 'grafana', |
Ilya Kharin | d5c1eef | 2017-06-10 00:15:06 +0400 | [diff] [blame] | 31 | 'stacklight-grafana', |
| 32 | 'stacklight-kibana', |
Vnaumov | 1b792de | 2017-10-06 14:53:55 +0300 | [diff] [blame^] | 33 | 'stacklight-prometheus', |
Volodymyr Stoiko | c53c56a | 2017-06-20 19:01:24 +0300 | [diff] [blame] | 34 | 'janitormonkey', |
Ilya Kharin | 9954eaf | 2017-03-06 15:21:07 +0400 | [diff] [blame] | 35 | ] %} |