Merge pull request #8 from netmanagers/master
[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       ConnectionPool: {{ arvados.cluster.database.connection_pool_max }}
70       Connection:
71         # All parameters here are passed to the PG client library in a connection string;
72         # see https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS
73         dbname: {{ arvados.cluster.database.name }}
74         host: {{ arvados.cluster.database.host }}
75         password: {{ arvados.cluster.database.password | yaml_encode }}
76         user: {{ arvados.cluster.database.user }}
77         client_encoding: {{ arvados.cluster.database.client_encoding }}
78         {%- if arvados.cluster.database.extra_conn_params is defined %}
79         {{ arvados.cluster.database.extra_conn_params | yaml(False) | indent(8) }}
80         {%- endif %}
81
82     ### SERVICES URLs
83     Services:
84     {%- for service in [
85         'Composer',
86         'Controller',
87         'DispatchCloud',
88         'GitHTTP',
89         'GitSSH',
90         'Health',
91         'Keepbalance',
92         'Keepproxy',
93         'Keepstore',
94         'Nodemanager',
95         'RailsAPI',
96         'SSO',
97         'WebDAV',
98         'WebDAVDownload',
99         'WebShell',
100         'Websocket',
101         'Workbench1',
102         'Workbench2',
103       ]
104     %}
105       {%- if service in arvados.cluster.Services %}
106       {{ service }}:
107         {{ arvados.cluster.Services[service] | yaml(False) | indent(8) }}
108       {%- endif %}
109     {%- endfor %}