a043333d106e5e5775089f5249a853732935704a
[arvados-formula.git] / test / salt / states / example_single_host_host_entries / init.sls
1 {% set curr_tpldir = tpldir %}
2 {% set tpldir = 'arvados' %}
3 {% from "arvados/map.jinja" import arvados with context %}
4 {% set tpldir = curr_tpldir %}
5
6 arvados_hosts_entries:
7   host.present:
8     - ip: {{ grains.get('ipv4')[0] }}
9     - names:
10       - {{ arvados.cluster.name }}.{{ arvados.cluster.domain }}
11       # FIXME! This just works for our testings.
12       # Won't work if the cluster name != host name
13       {%- for entry in [
14           'keep',
15           'keep0',
16           'collections',
17           'download',
18           'ws',
19           'workbench',
20           'workbench2'
21         ]
22       %}
23       - {{ entry }}
24       - {{ entry }}.{{ arvados.cluster.name }}.{{ arvados.cluster.domain }}
25       {%- endfor %}