20690: Removes WORKBENCH_SECRET_KEY from config. Uses new formula version.
[arvados.git] / tools / salt-install / config_examples / single_host / multiple_hostnames / pillars / arvados.sls
1 # -*- coding: utf-8 -*-
2 # vim: ft=yaml
3 ---
4 # Copyright (C) The Arvados Authors. All rights reserved.
5 #
6 # SPDX-License-Identifier: AGPL-3.0
7
8 {%- set database_host = ("__DATABASE_EXTERNAL_SERVICE_HOST_OR_IP__" or "127.0.0.1") %}
9 {%- set database_name = "__DATABASE_NAME__" %}
10 {%- set database_user = "__DATABASE_USER__" %}
11 {%- set database_password = "__DATABASE_PASSWORD__" %}
12
13 # The variables commented out are the default values that the formula uses.
14 # The uncommented values are REQUIRED values. If you don't set them, running
15 # this formula will fail.
16 arvados:
17   ### GENERAL CONFIG
18   version: '__VERSION__'
19   ## It makes little sense to disable this flag, but you can, if you want :)
20   # use_upstream_repo: true
21
22   ## Repo URL is built with grains values. If desired, it can be completely
23   ## overwritten with the pillar parameter 'repo_url'
24   # repo:
25   #   humanname: Arvados Official Repository
26
27   release: __RELEASE__
28
29   ## IMPORTANT!!!!!
30   ## api, workbench and shell require some gems, so you need to make sure ruby
31   ## and deps are installed in order to install and compile the gems.
32   ## We default to `false` in these two variables as it's expected you already
33   ## manage OS packages with some other tool and you don't want us messing up
34   ## with your setup.
35   ruby:
36     ## We set these to `true` here for testing purposes.
37     ## They both default to `false`.
38     manage_ruby: true
39     manage_gems_deps: true
40     # pkg: ruby
41     # gems_deps:
42     #     - curl
43     #     - g++
44     #     - gcc
45     #     - git
46     #     - libcurl4
47     #     - libcurl4-gnutls-dev
48     #     - libpq-dev
49     #     - libxml2
50     #     - libxml2-dev
51     #     - make
52     #     - python3-dev
53     #     - ruby-dev
54     #     - zlib1g-dev
55
56   # config:
57   #   file: /etc/arvados/config.yml
58   #   user: root
59   ## IMPORTANT!!!!!
60   ## If you're intalling any of the rails apps (api, workbench), the group
61   ## should be set to that of the web server, usually `www-data`
62   #   group: root
63   #   mode: 640
64
65   ### ARVADOS CLUSTER CONFIG
66   cluster:
67     name: __CLUSTER__
68     domain: __DOMAIN__
69
70     database:
71       # max concurrent connections per arvados server daemon
72       # connection_pool_max: 32
73       name: {{ database_name }}
74       host: {{ database_host }}
75       password: {{ database_password }}
76       user: {{ database_user }}
77       extra_conn_params:
78         client_encoding: UTF8
79       # Centos7 does not enable SSL by default, so we disable
80       # it here just for testing of the formula purposes only.
81       # You should not do this in production, and should
82       # configure Postgres certificates correctly
83       {%- if grains.os_family in ('RedHat',) %}
84         sslmode: disable
85       {%- endif %}
86
87     tls:
88       # certificate: ''
89       # key: ''
90       # When using arvados-snakeoil certs set insecure: true
91       insecure: false
92
93     resources:
94       virtual_machines:
95         shell:
96           name: webshell
97           backend: 127.0.0.1
98           port: 4200
99
100     ### TOKENS
101     tokens:
102       system_root: __SYSTEM_ROOT_TOKEN__
103       management: __MANAGEMENT_TOKEN__
104       anonymous_user: __ANONYMOUS_USER_TOKEN__
105
106     ### KEYS
107     secrets:
108       blob_signing_key: __BLOB_SIGNING_KEY__
109
110     Login:
111       Test:
112         Enable: true
113         Users:
114           __INITIAL_USER__:
115             Email: __INITIAL_USER_EMAIL__
116             Password: __INITIAL_USER_PASSWORD__
117
118     ### VOLUMES
119     ## This should usually match all your `keepstore` instances
120     Volumes:
121       # the volume name will be composed with
122       # <cluster>-nyw5e-<volume>
123       __CLUSTER__-nyw5e-000000000000000:
124         AccessViaHosts:
125           'http://keep0.__CLUSTER__.__DOMAIN__:25107':
126             ReadOnly: false
127         Replication: 2
128         Driver: Directory
129         DriverParameters:
130           Root: /var/lib/arvados/keep
131
132     Users:
133       NewUsersAreActive: true
134       AutoAdminFirstUser: true
135       AutoSetupNewUsers: true
136       AutoSetupNewUsersWithRepository: true
137
138     Services:
139       Controller:
140         ExternalURL: 'https://__CLUSTER__.__DOMAIN__:__CONTROLLER_EXT_SSL_PORT__'
141         InternalURLs:
142           'http://controller.internal:8003': {}
143       DispatchCloud:
144         InternalURLs:
145           'http://__CLUSTER__.__DOMAIN__:9006': {}
146       Keepbalance:
147         InternalURLs:
148           'http://localhost:9005': {}
149       Keepproxy:
150         ExternalURL: 'https://keep.__CLUSTER__.__DOMAIN__:__CONTROLLER_EXT_SSL_PORT__'
151         InternalURLs:
152           'http://keep.internal:25100': {}
153       Keepstore:
154         InternalURLs:
155           'http://keep0.__CLUSTER__.__DOMAIN__:25107': {}
156       RailsAPI:
157         InternalURLs:
158           'http://api.internal:8004': {}
159       WebDAV:
160         ExternalURL: 'https://collections.__CLUSTER__.__DOMAIN__:__CONTROLLER_EXT_SSL_PORT__'
161         InternalURLs:
162           'http://collections.internal:9002': {}
163       WebDAVDownload:
164         ExternalURL: 'https://download.__CLUSTER__.__DOMAIN__:__CONTROLLER_EXT_SSL_PORT__'
165       WebShell:
166         ExternalURL: 'https://webshell.__CLUSTER__.__DOMAIN__:__CONTROLLER_EXT_SSL_PORT__'
167       Websocket:
168         ExternalURL: 'wss://ws.__CLUSTER__.__DOMAIN__/websocket'
169         InternalURLs:
170           'http://ws.internal:8005': {}
171       Workbench1:
172         ExternalURL: 'https://workbench.__CLUSTER__.__DOMAIN__:__CONTROLLER_EXT_SSL_PORT__'
173       Workbench2:
174         ExternalURL: 'https://workbench2.__CLUSTER__.__DOMAIN__:__CONTROLLER_EXT_SSL_PORT__'