c52186ee567bd8d4104ae2c352d99b1351426579
[arvados-formula.git] / arvados / files / default / config.tmpl.jinja
1 ---
2 ########################################################################
3 # File managed by Salt at <{{ source }}>.
4 # Your changes will be overwritten.
5 #
6 # Please check https://doc.arvados.org/master/admin/config.html for
7 # documentation about the parameters configured here.
8 ########################################################################
9 {%- if arvados.release == 'development' %}
10 # (Experimental) Restart services automatically when config file
11 # changes are detected. Only supported by `arvados-server boot` in
12 # dev mode.
13 AutoReloadConfig: {{ arvados.auto_reload_config }}
14 {%- endif %}
15
16 Clusters:
17   {{ arvados.cluster.name }}:
18
19     SystemRootToken: {{ arvados.cluster.tokens.system_root | yaml_encode }}
20     ManagementToken: {{ arvados.cluster.tokens.management | yaml_encode }}
21
22     ForceLegacyAPI14: {{ arvados.cluster.force_legacy_api14 }}
23
24     API:
25     {%- if 'API' in arvados.cluster %}
26       {{ arvados.cluster.API | default('') | yaml(False) | indent(6) }}
27     {%- endif %}
28
29     Collections:
30       BlobSigningKey: {{ arvados.cluster.secrets.blob_signing_key | yaml_encode }}
31     {%- if 'Collections' in arvados.cluster %}
32       {{ arvados.cluster.Collections | yaml(False) | indent(6) }}
33     {%- endif %}
34
35     TLS:
36       Certificate: {{ arvados.cluster.tls.certificate | yaml_encode }}
37       Key: {{ arvados.cluster.tls.key | yaml_encode }}
38       Insecure: {{ arvados.cluster.tls.insecure }}
39
40     Workbench:
41       SecretKeyBase: {{ arvados.cluster.secrets.workbench_secret_key | yaml_encode }}
42       SiteName: {{ arvados.cluster.name | upper }}
43     {%- if 'Workbench' in arvados.cluster %}
44       {{ arvados.cluster.Workbench | yaml(False) | indent(6) }}
45     {%- endif %}
46
47     {%- for section in [
48         'AuditLogs',
49         'Containers',
50         'Git',
51         'InstanceTypes',
52         'Login',
53         'Mail',
54         'RemoteClusters',
55         'SystemLogs',
56         'Users',
57         'Volumes'
58       ]
59     %}
60       {%- if section in arvados.cluster %}
61     {{ section }}:
62       {{ arvados.cluster[section] | yaml(False) | indent(6) }}
63       {%- endif %}
64     {%- endfor %}
65
66     ### DATABASE CONFIGURATION
67     PostgreSQL:
68       ConnectionPool: {{ arvados.cluster.database.connection_pool_max }}
69       Connection:
70         # All parameters here are passed to the PG client library in a connection string;
71         # see https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS
72         dbname: {{ arvados.cluster.database.name }}
73         host: {{ arvados.cluster.database.host }}
74         password: {{ arvados.cluster.database.password | yaml_encode }}
75         user: {{ arvados.cluster.database.user }}
76         client_encoding: {{ arvados.cluster.database.client_encoding }}
77         {%- if arvados.cluster.database.extra_conn_params is defined %}
78         {{ arvados.cluster.database.extra_conn_params | yaml(False) | indent(8) }}
79         {%- endif %}
80
81     ### SERVICES URLs
82     Services:
83     {%- for service in [
84         'Composer',
85         'Controller',
86         'DispatchCloud',
87         'GitHTTP',
88         'GitSSH',
89         'Health',
90         'Keepbalance',
91         'Keepproxy',
92         'Keepstore',
93         'Nodemanager',
94         'RailsAPI',
95         'SSO',
96         'WebDAV',
97         'WebDAVDownload',
98         'WebShell',
99         'Websocket',
100         'Workbench1',
101         'Workbench2',
102       ]
103     %}
104       {%- if service in arvados.cluster.Services %}
105       {{ service }}:
106         {{ arvados.cluster.Services[service] | yaml(False) | indent(8) }}
107       {%- endif %}
108     {%- endfor %}