Merge branch '17528-install-warnings'
[arvados.git] / tools / salt-install / config_examples / single_host / multiple_hostnames / 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 arvados_test_salt_states_examples_single_host_etc_hosts_host_present:
11   host.present:
12     - ip: 127.0.1.1
13     - names:
14       - {{ arvados.cluster.name }}.{{ arvados.cluster.domain }}
15       # FIXME! This just works for our testings.
16       # Won't work if the cluster name != host name
17       {%- for entry in [
18           'api',
19           'collections',
20           'controller',
21           'download',
22           'keep',
23           'keepweb',
24           'keep0',
25           'shell',
26           'workbench',
27           'workbench2',
28           'ws',
29         ]
30       %}
31       - {{ entry }}
32       - {{ entry }}.internal
33       - {{ entry }}.{{ arvados.cluster.name }}.{{ arvados.cluster.domain }}
34       {%- endfor %}
35     - require_in:
36       - file: nginx_config
37       - service: nginx_service