46923cd50f2b2e38cd5f3f8fa5fdf1ba48cb1b87
[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       RailsSessionSecretToken: {{ arvados.cluster.tokens.rails_secret | yaml_encode }}
26     {%- if 'API' in arvados.cluster %}
27       {{ arvados.cluster.API | default('') | yaml(False) | indent(6) }}
28     {%- endif %}
29
30     Collections:
31       BlobSigningKey: {{ arvados.cluster.secrets.blob_signing_key | yaml_encode }}
32     {%- if 'Collections' in arvados.cluster %}
33       {{ arvados.cluster.Collections | yaml(False) | indent(6) }}
34     {%- endif %}
35
36     TLS:
37       Certificate: {{ arvados.cluster.tls.certificate | yaml_encode }}
38       Key: {{ arvados.cluster.tls.key | yaml_encode }}
39       Insecure: {{ arvados.cluster.tls.insecure }}
40
41     Workbench:
42       SecretKeyBase: {{ arvados.cluster.secrets.workbench_secret_key | yaml_encode }}
43       SiteName: {{ arvados.cluster.name | upper }}
44     {%- if 'Workbench' in arvados.cluster %}
45       {{ arvados.cluster.Workbench | yaml(False) | indent(6) }}
46     {%- endif %}
47
48     {%- for section in [
49         'AuditLogs',
50         'Containers',
51         'Git',
52         'InstanceTypes',
53         'Login',
54         'Mail',
55         'RemoteClusters',
56         'SystemLogs',
57         'Users',
58         'Volumes'
59       ]
60     %}
61       {%- if section in arvados.cluster %}
62     {{ section }}:
63       {{ arvados.cluster[section] | yaml(False) | indent(6) }}
64       {%- endif %}
65     {%- endfor %}
66
67     ### DATABASE CONFIGURATION
68     PostgreSQL:
69       # FIXME!!!!!! ALL as database or using Arvados' PostgreSQL ??
70       ConnectionPool: {{ arvados.cluster.database.connection_pool_max }}
71       Connection:
72         # All parameters here are passed to the PG client library in a connection string;
73         # see https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS
74         dbname: {{ arvados.cluster.database.name }}
75         host: {{ arvados.cluster.database.host }}
76         password: {{ arvados.cluster.database.password | yaml_encode }}
77         user: {{ arvados.cluster.database.user }}
78         client_encoding: {{ arvados.cluster.database.client_encoding }}
79     {%- if 'PostgreSQL' in arvados.cluster %}
80       {{ arvados.cluster.PostgreSQL | yaml(False) | indent(6) }}
81     {%- endif %}
82
83     ### SERVICES URLs
84     Services:
85     {%- for service in [
86         'Composer',
87         'Controller',
88         'DispatchCloud',
89         'GitHTTP',
90         'GitSSH',
91         'Health',
92         'Keepbalance',
93         'Keepproxy',
94         'Keepstore',
95         'Nodemanager',
96         'RailsAPI',
97         'SSO',
98         'WebDAV',
99         'WebDAVDownload',
100         'WebShell',
101         'Websocket',
102         'Workbench1',
103         'Workbench2',
104       ]
105     %}
106       {%- if service in arvados.cluster.Services %}
107       {{ service }}:
108         {{ arvados.cluster.Services[service] | yaml(False) | indent(8) }}
109       {%- endif %}
110     {%- endfor %}