17750: Centos 7 needs rvm for api and workbench
[arvados-formula.git] / arvados / map.jinja
1 # -*- coding: utf-8 -*-
2 # vim: ft=jinja
3
4 {#- Get the `tplroot` from `tpldir` #}
5 {%- set tplroot = tpldir.split('/')[0] %}
6 {#- Start imports as #}
7 {%- import_yaml tplroot ~ "/defaults.yaml" as default_settings %}
8 {%- import_yaml tplroot ~ "/osfamilymap.yaml" as osfamilymap %}
9
10 {#- Retrieve the config dict only once #}
11 {%- set _config = salt['config.get'](tplroot, default={}) %}
12
13 {%- set defaults = salt['grains.filter_by'](
14       default_settings,
15       default=tplroot,
16       merge=salt['grains.filter_by'](
17         osfamilymap,
18         grain='os_family',
19         merge=salt['grains.filter_by'](
20           _config,
21           default='lookup'
22         )
23       )
24     )
25 %}
26
27 {%- set config = salt['grains.filter_by'](
28       {'defaults': defaults},
29       default='defaults',
30       merge=_config
31     )
32 %}
33
34 {%- set arvados = config %}