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 -%} |
Ilya Kharin | e1cf854 | 2017-03-17 18:37:09 +0400 | [diff] [blame] | 8 | {{ endpoint.address }}:{{ endpoint.port }}/ |
| 9 | {%- endmacro %} |
| 10 | |
Ilya Kharin | 9954eaf | 2017-03-06 15:21:07 +0400 | [diff] [blame] | 11 | {% set services = [ |
| 12 | 'artifactory', |
| 13 | 'elasticsearch', |
| 14 | 'gerrit', |
| 15 | 'grafana', |
| 16 | 'jenkins', |
| 17 | 'kibana', |
| 18 | 'riverdelta', |
| 19 | 'rundeck', |
| 20 | ] %} |