855757e62857e37af31d8138c8717dec7b7402b5
[arvados-formula.git] / test / salt / states / examples / single_host / host_entries.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_test_salt_states_examples_single_host_etc_hosts_host_present:
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           'api',
15           'collections',
16           'controller',
17           'download',
18           'keep',
19           'keep0',
20           'shell',
21           'workbench',
22           'workbench2',
23           'ws',
24         ]
25       %}
26       - {{ entry }}.internal
27       - {{ entry }}.{{ arvados.cluster.name }}.{{ arvados.cluster.domain }}
28       {%- endfor %}