Merge pull request #8 from netmanagers/master
[arvados-formula.git] / pillar.example
1 # -*- coding: utf-8 -*-
2 # vim: ft=yaml
3 ---
4 # The variables commented out are the default values that the formula uses.
5 # The uncommented values are REQUIRED values. If you don't set them, running
6 # this formula will fail.
7 arvados:
8   ### GENERAL CONFIG
9   # version: '2.1.0'
10   # release: production
11   ## It makes little sense to disable this flag, but you can, if you want :)
12   # use_upstream_repo: true
13
14   ## Repo URL is built with grains values. If desired, it can be completely
15   ## overwritten with the pillar parameter 'repo_url'
16   # repo:
17   #   humanname: Arvados Official Repository
18
19   ## IMPORTANT!!!!!
20   ## api, workbench and shell require some gems, so you need to make sure ruby
21   ## and deps are installed in order to install and compile the gems.
22   ## We default to `false` in these two variables as it's expected you already
23   ## manage OS packages with some other tool and you don't want us messing up
24   ## with your setup.
25   ruby:
26     ## We set these to `true` here for testing purposes.
27     ## They both default to `false`.
28     manage_ruby: true
29     use_rvm: false     # If you want to use rvm. Defaults to true for centos-7
30     # pkg: ruby        # Can specify a version like ruby-2.5.7 for rvm
31     manage_gems_deps: true
32     # gems_deps:
33     #     - curl
34     #     - g++
35     #     - gcc
36     #     - git
37     #     - libcurl4
38     #     - libcurl4-gnutls-dev
39     #     - libpq-dev
40     #     - libxml2
41     #     - libxml2-dev
42     #     - make
43     #     - python3-dev
44     #     - ruby-dev
45     #     - zlib1g-dev
46
47   # config:
48   #   file: /etc/arvados/config.yml
49   #   user: root
50   ## IMPORTANT!!!!!
51   ## If you're intalling any of the rails apps (api, workbench), the group
52   ## should be set to that of the web server, usually `www-data`
53   #   group: root
54   #   mode: 640
55
56   ### ARVADOS CLUSTER CONFIG
57   cluster:
58     name: fixme
59     domain: example.net
60
61     database:
62       # max concurrent connections per arvados server daemon
63       # connection_pool_max: 32
64       name: arvados
65       host: 127.0.0.1
66       password: changeme_arvados
67       user: arvados
68       encoding: en_US.utf8
69       client_encoding: UTF8
70       # You can pass extra database connections parameters here,
71       # which will be rendered as yaml.
72       # extra_conn_params:
73       #  sslmode: prefer
74       #  verify-ca: false
75
76
77     tls:
78       # certificate: ''
79       # key: ''
80       # required to test with snakeoil certs
81       insecure: true
82
83     ### TOKENS
84     tokens:
85       system_root: changeme_system_root_token
86       management: changeme_management_token
87       rails_secret: changeme_rails_secret_token
88       anonymous_user: changeme_anonymous_user_token
89
90     ### KEYS
91     secrets:
92       blob_signing_key: changeme_blob_signing_key
93       workbench_secret_key: changeme_workbench_secret_key
94       dispatcher_access_key: changeme_dispatcher_access_key
95       dispatcher_secret_key: changeme_dispatcher_secret_key
96       keep_access_key: changeme_keep_access_key
97       keep_secret_key: changeme_keep_secret_key
98
99     AuditLogs:
100       Section_to_ignore:
101         - some_random_value
102
103     ### VOLUMES
104     ## This should usually match all your `keepstore` instances
105     Volumes:
106       # the volume name will be composed with
107       # <cluster>-nyw5e-<volume>
108       fixme-nyw5e-000000000000000:
109         AccessViaHosts:
110           http://keep0.fixme.example.net:25107:
111             ReadOnly: false
112         Replication: 2
113         Driver: Directory
114         DriverParameters:
115           Root: /tmp
116
117     Users:
118       NewUsersAreActive: true
119       AutoAdminFirstUser: true
120       AutoSetupNewUsers: true
121       AutoSetupNewUsersWithRepository: true
122
123     Services:
124       Controller:
125         ExternalURL: https://fixme.example.net
126         InternalURLs:
127           http://localhost:8003: {}
128       DispatchCloud:
129         InternalURLs:
130           http://fixme.example.net:9006: {}
131       Keepbalance:
132         InternalURLs:
133           http://fixme.example.net:9005: {}
134       Keepproxy:
135         ExternalURL: https://keep.fixme.example.net
136         InternalURLs:
137           http://localhost:25100: {}
138       Keepstore:
139         InternalURLs:
140           http://keep0.fixme.example.net:25107: {}
141       RailsAPI:
142         InternalURLs:
143           http://localhost:8004: {}
144       WebDAV:
145         ExternalURL: https://collections.fixme.example.net
146         InternalURLs:
147           http://localhost:9002: {}
148       WebDAVDownload:
149         ExternalURL: https://download.fixme.example.net
150       WebShell:
151         ExternalURL: https://webshell.fixme.example.net
152       Websocket:
153         ExternalURL: wss://ws.fixme.example.net/websocket
154         InternalURLs:
155           http://localhost:8005: {}
156       Workbench1:
157         ExternalURL: https://workbench.fixme.example.net
158       Workbench2:
159         ExternalURL: https://workbench2.fixme.example.net
160
161 #  ### THESE ARE THE PACKAGES AND DAEMONS BASIC CONFIGS
162 #  #### API
163 #   api:
164 #     pkg:
165 #       name:
166 #         - arvados-api-server
167 #         - arvados-dispatch-cloud
168 #     gem:
169 #       name:
170 #         - arvados-cli
171 #     service:
172 #       name:
173 #         - nginx
174 #       port: 8004
175 #  #### CONTROLLER
176 #   controller:
177 #     pkg:
178 #       name: arvados-controller
179 #     service:
180 #       name: arvados-controller
181 #       port: 8003
182 #  #### DISPATCHER
183 #   dispatcher:
184 #     pkg:
185 #       name:
186 #         - crunch-dispatch-local
187 #       #   - arvados-dispatch-cloud
188 #       #   - crunch-dispatch-slurm
189 #     service:
190 #       name: crunch-dispatch-local
191 #       port: 9006
192 #  #### KEEPPROXY
193 #   keepproxy:
194 #     pkg:
195 #       name: keepproxy
196 #     service:
197 #       name: keepproxy
198 #       port: 25107
199 #  #### KEEPWEB
200 #   keepweb:
201 #     pkg:
202 #       name: keep-web
203 #     service:
204 #       name: keep-web
205 #     #   webdav
206 #       port: 9002
207 #  #### KEEPSTORE
208 #   keepstore:
209 #     pkg:
210 #       name: keepstore
211 #     service:
212 #       name: keepstore
213 #       port: 25107
214 #  #### GIT-HTTPD
215 #   githttpd:
216 #     pkg:
217 #       name: arvados-git-httpd
218 #     service:
219 #       name: arvados-git-httpd
220 #       port: 9001
221 #  #### SHELL
222 #   shell:
223 #     pkg:
224 #       name:
225 #         - arvados-client
226 #         - arvados-src
227 #         - libpam-arvados-go
228 #         - python3-arvados-fuse
229 #         - python3-arvados-python-client
230 #         - python3-arvados-cwl-runner
231 #     gem:
232 #       name:
233 #         - arvados-cli
234 #         - arvados-login-sync
235 #     shellinabox:
236 #       config: /etc/default/shellinabox
237 #       service:
238 #         name: shellinabox
239 #         port: 4200
240 #     libpam_arvados:
241 #       config: /etc/pam.d/arvados
242 #  #### WORKBENCH
243 #   workbench:
244 #     pkg:
245 #       name: arvados-workbench
246 #     service:
247 #       name: nginx
248 #  #### WORKBENCH2
249 #   workbench2:
250 #     pkg:
251 #       name: arvados-workbench2
252 #     service:
253 #       name: nginx
254 #  ####  WEBSOCKET
255 #   websocket:
256 #     pkg:
257 #       name: arvados-ws
258 #     service:
259 #       name: arvados-ws
260 #       port: 8005
261 #  #### SSO
262 #   sso:
263 #     pkg:
264 #       name: arvados-sso
265 #     service:
266 #       name: arvados-sso
267 #       port: 8900
268
269 #  ## SALTSTACK FORMULAS TOFS configuration
270 #   https://template-formula.readthedocs.io/en/latest/TOFS_pattern.html
271 #   tofs:
272 #   #    The files_switch key serves as a selector for alternative
273 #   #    directories under the formula files directory. See TOFS pattern
274 #   #    doc for more info.
275 #   #    Note: Any value not evaluated by `config.get` will be used literally.
276 #   #    This can be used to set custom paths, as many levels deep as required.
277 #     files_switch:
278 #       - any/path/can/be/used/here
279 #       - id
280 #       - roles
281 #       - osfinger
282 #       - os
283 #       - os_family
284 #   #    All aspects of path/file resolution are customisable using the options below.
285 #   #    This is unnecessary in most cases; there are sensible defaults.
286 #   #    Default path: salt://< path_prefix >/< dirs.files >/< dirs.default >
287 #   #            I.e.: salt://arvados/files/default
288 #   #    path_prefix: template_alt
289 #   #    dirs:
290 #   #      files: files_alt
291 #   #      default: default_alt
292 #   #    The entries under `source_files` are prepended to the default source files
293 #   #    given for the state
294 #   #    source_files:
295 #   #      arvados-config-file-file-managed:
296 #   #        - 'example_alt.tmpl'
297 #   #        - 'example_alt.tmpl.jinja'