2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
6 {%- set domain = "__DOMAIN__" %}
7 {%- set controller_nodes = "__CONTROLLER_NODES__".split(",") %}
8 {%- set websocket_ip = "__WEBSOCKET_INT_IP__" %}
9 {%- set keepbalance_ip = "__KEEPBALANCE_INT_IP__" %}
15 use_upstream_repo: true
18 listen_addresses = '*' # listen on all interfaces
20 - ['local', 'all', 'postgres', 'peer']
21 - ['local', 'all', 'all', 'peer']
22 - ['host', 'all', 'all', '127.0.0.1/32', 'md5']
23 - ['host', 'all', 'all', '::1/128', 'md5']
24 - ['host', '__CLUSTER___arvados', '__CLUSTER___arvados', '127.0.0.1/32']
25 - ['host', '__CLUSTER___arvados', '__CLUSTER___arvados', '{{ websocket_ip }}/32']
26 - ['host', '__CLUSTER___arvados', '__CLUSTER___arvados', '{{ keepbalance_ip }}/32']
27 {%- for controller_hostname in controller_nodes %}
28 {%- set controller_ip = salt['cmd.run']("getent hosts "+controller_hostname+" | awk '{print $1 ; exit}'", python_shell=True) %}
29 - ['host', '__CLUSTER___arvados', '__CLUSTER___arvados', '{{ controller_ip }}/32']
34 password: "__DATABASE_PASSWORD__"
39 owner: __CLUSTER___arvados
42 lc_collate: en_US.utf8
45 owner: __CLUSTER___arvados