test(dispatcher): add helper state
[arvados-formula.git] / test / salt / states / hosts_entries / init.sls
1 arvados_hosts_entries:
2   host.present:
3     - ip: {{ grains.get('ipv4')[0] }}
4     - names:
5       - {{ grains.get('fqdn') }}
6       {%- for entry in [
7           'keep',
8           'keep0',
9           'collections',
10           'download',
11           'ws',
12           'workbench',
13           'workbench2'
14         ]
15       %}
16       - {{ entry }}
17       # FIXME! This just works for our testings.
18       # Won't work if the cluster name != host name
19       - {{ entry }}.{{ grains.get('host') }}.{{ grains.get('domain') }}
20       {%- endfor %}