18870: Change the non-user oriented "FIXME" to "NOTE"
[arvados.git] / tools / salt-install / config_examples / single_host / single_hostname / states / host_entries.sls
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 {%- set curr_tpldir = tpldir %}
6 {%- set tpldir = 'arvados' %}
7 {%- from "arvados/map.jinja" import arvados with context %}
8 {%- set tpldir = curr_tpldir %}
9
10 # We need the external hostname to resolve to the internal IP for docker. We
11 # tell docker to resolve via the local dnsmasq, which reads from /etc/hosts by
12 # default.
13 arvados_local_access_to_hostname_ext:
14   host.present:
15     - ip: __IP_INT__
16     - names:
17       - __HOSTNAME_EXT__
18
19 arvados_test_salt_states_examples_single_host_etc_hosts_host_present:
20   host.present:
21     - ip: 127.0.1.1
22     - names:
23       - {{ arvados.cluster.name }}.{{ arvados.cluster.domain }}
24       # NOTE! This just works for our testing.
25       # Won't work if the cluster name != host name
26       {%- for entry in [
27           'api',
28           'collections',
29           'controller',
30           'download',
31           'keep',
32           'keepweb',
33           'keep0',
34           'shell',
35           'workbench',
36           'workbench2',
37           'ws',
38         ]
39       %}
40       - {{ entry }}
41       - {{ entry }}.{{ arvados.cluster.name }}.{{ arvados.cluster.domain }}
42       {%- endfor %}
43     - require_in:
44       - file: nginx_config
45       - service: nginx_service