test(dependencies): add ssl certs dependencies so nginx does not fail
[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 include:
7   - nginx.config
8
9 arvados_test_salt_states_examples_single_host_etc_hosts_host_present:
10   host.present:
11     - ip: {{ grains.get('ipv4')[0] }}
12     - names:
13       - {{ arvados.cluster.name }}.{{ arvados.cluster.domain }}
14       # FIXME! This just works for our testings.
15       # Won't work if the cluster name != host name
16       {%- for entry in [
17           'api',
18           'collections',
19           'controller',
20           'download',
21           'keep',
22           'keep0',
23           'shell',
24           'workbench',
25           'workbench2',
26           'ws',
27         ]
28       %}
29       - {{ entry }}.internal
30       - {{ entry }}.{{ arvados.cluster.name }}.{{ arvados.cluster.domain }}
31       {%- endfor %}
32     - require_in:
33       - file: nginx_config