13647: Merge branch 'master' into 13647-keepstore-config
[arvados.git] / lib / config / generated_config.go
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 package config
6
7 var DefaultYAML = []byte(`# Copyright (C) The Arvados Authors. All rights reserved.
8 #
9 # SPDX-License-Identifier: AGPL-3.0
10
11 # Do not use this file for site configuration. Create
12 # /etc/arvados/config.yml instead.
13 #
14 # The order of precedence (highest to lowest):
15 # 1. Legacy component-specific config files (deprecated)
16 # 2. /etc/arvados/config.yml
17 # 3. config.default.yml
18
19 Clusters:
20   xxxxx:
21     SystemRootToken: ""
22
23     # Token to be included in all healthcheck requests. Disabled by default.
24     # Server expects request header of the format "Authorization: Bearer xxx"
25     ManagementToken: ""
26
27     Services:
28
29       # In each of the service sections below, the keys under
30       # InternalURLs are the endpoints where the service should be
31       # listening, and reachable from other hosts in the cluster.
32       SAMPLE:
33         InternalURLs:
34           "http://example.host:12345": {}
35           SAMPLE:
36             Rendezvous: ""
37         ExternalURL: "-"
38
39       RailsAPI:
40         InternalURLs: {}
41         ExternalURL: "-"
42       Controller:
43         InternalURLs: {}
44         ExternalURL: ""
45       Websocket:
46         InternalURLs: {}
47         ExternalURL: ""
48       Keepbalance:
49         InternalURLs: {}
50         ExternalURL: "-"
51       GitHTTP:
52         InternalURLs: {}
53         ExternalURL: ""
54       GitSSH:
55         InternalURLs: {}
56         ExternalURL: ""
57       DispatchCloud:
58         InternalURLs: {}
59         ExternalURL: "-"
60       SSO:
61         InternalURLs: {}
62         ExternalURL: ""
63       Keepproxy:
64         InternalURLs: {}
65         ExternalURL: ""
66       WebDAV:
67         InternalURLs: {}
68         # Base URL for Workbench inline preview.  If blank, use
69         # WebDAVDownload instead, and disable inline preview.
70         # If both are empty, downloading collections from workbench
71         # will be impossible.
72         #
73         # It is important to properly configure the download service
74         # to migitate cross-site-scripting (XSS) attacks.  A HTML page
75         # can be stored in collection.  If an attacker causes a victim
76         # to visit that page through Workbench, it will be rendered by
77         # the browser.  If all collections are served at the same
78         # domain, the browser will consider collections as coming from
79         # the same origin and having access to the same browsing data,
80         # enabling malicious Javascript on that page to access Arvados
81         # on behalf of the victim.
82         #
83         # This is mitigating by having separate domains for each
84         # collection, or limiting preview to circumstances where the
85         # collection is not accessed with the user's regular
86         # full-access token.
87         #
88         # Serve preview links using uuid or pdh in subdomain
89         # (requires wildcard DNS and TLS certificate)
90         #   https://*.collections.uuid_prefix.arvadosapi.com
91         #
92         # Serve preview links using uuid or pdh in main domain
93         # (requires wildcard DNS and TLS certificate)
94         #   https://*--collections.uuid_prefix.arvadosapi.com
95         #
96         # Serve preview links by setting uuid or pdh in the path.
97         # This configuration only allows previews of public data or
98         # collection-sharing links, because these use the anonymous
99         # user token or the token is already embedded in the URL.
100         # Other data must be handled as downloads via WebDAVDownload:
101         #   https://collections.uuid_prefix.arvadosapi.com
102         #
103         ExternalURL: ""
104
105       WebDAVDownload:
106         InternalURLs: {}
107         # Base URL for download links. If blank, serve links to WebDAV
108         # with disposition=attachment query param.  Unlike preview links,
109         # browsers do not render attachments, so there is no risk of XSS.
110         #
111         # If WebDAVDownload is blank, and WebDAV uses a
112         # single-origin form, then Workbench will show an error page
113         #
114         # Serve download links by setting uuid or pdh in the path:
115         #   https://download.uuid_prefix.arvadosapi.com
116         #
117         ExternalURL: ""
118
119       Keepstore:
120         InternalURLs: {}
121         ExternalURL: "-"
122       Composer:
123         InternalURLs: {}
124         ExternalURL: ""
125       WebShell:
126         InternalURLs: {}
127         # ShellInABox service endpoint URL for a given VM.  If empty, do not
128         # offer web shell logins.
129         #
130         # E.g., using a path-based proxy server to forward connections to shell hosts:
131         # https://webshell.uuid_prefix.arvadosapi.com
132         #
133         # E.g., using a name-based proxy server to forward connections to shell hosts:
134         # https://*.webshell.uuid_prefix.arvadosapi.com
135         ExternalURL: ""
136       Workbench1:
137         InternalURLs: {}
138         ExternalURL: ""
139       Workbench2:
140         InternalURLs: {}
141         ExternalURL: ""
142       Nodemanager:
143         InternalURLs: {}
144         ExternalURL: "-"
145       Health:
146         InternalURLs: {}
147         ExternalURL: "-"
148
149     PostgreSQL:
150       # max concurrent connections per arvados server daemon
151       ConnectionPool: 32
152       Connection:
153         # All parameters here are passed to the PG client library in a connection string;
154         # see https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS
155         host: ""
156         port: ""
157         user: ""
158         password: ""
159         dbname: ""
160         SAMPLE: ""
161     API:
162       # Maximum size (in bytes) allowed for a single API request.  This
163       # limit is published in the discovery document for use by clients.
164       # Note: You must separately configure the upstream web server or
165       # proxy to actually enforce the desired maximum request size on the
166       # server side.
167       MaxRequestSize: 134217728
168
169       # Limit the number of bytes read from the database during an index
170       # request (by retrieving and returning fewer rows than would
171       # normally be returned in a single response).
172       # Note 1: This setting never reduces the number of returned rows to
173       # zero, no matter how big the first data row is.
174       # Note 2: Currently, this is only checked against a specific set of
175       # columns that tend to get large (collections.manifest_text,
176       # containers.mounts, workflows.definition). Other fields (e.g.,
177       # "properties" hashes) are not counted against this limit.
178       MaxIndexDatabaseRead: 134217728
179
180       # Maximum number of items to return when responding to a APIs that
181       # can return partial result sets using limit and offset parameters
182       # (e.g., *.index, groups.contents). If a request specifies a "limit"
183       # parameter higher than this value, this value is used instead.
184       MaxItemsPerResponse: 1000
185
186       # Maximum number of concurrent requests to accept in a single
187       # service process, or 0 for no limit. Currently supported only
188       # by keepstore.
189       MaxConcurrentRequests: 0
190
191       # Maximum number of 64MiB memory buffers per keepstore server
192       # process, or 0 for no limit.
193       MaxKeepBlockBuffers: 128
194
195       # API methods to disable. Disabled methods are not listed in the
196       # discovery document, and respond 404 to all requests.
197       # Example: {"jobs.create":{}, "pipeline_instances.create": {}}
198       DisabledAPIs: {}
199
200       # Interval (seconds) between asynchronous permission view updates. Any
201       # permission-updating API called with the 'async' parameter schedules a an
202       # update on the permission view in the future, if not already scheduled.
203       AsyncPermissionsUpdateInterval: 20s
204
205       # Maximum number of concurrent outgoing requests to make while
206       # serving a single incoming multi-cluster (federated) request.
207       MaxRequestAmplification: 4
208
209       # RailsSessionSecretToken is a string of alphanumeric characters
210       # used by Rails to sign session tokens. IMPORTANT: This is a
211       # site secret. It should be at least 50 characters.
212       RailsSessionSecretToken: ""
213
214       # Maximum wall clock time to spend handling an incoming request.
215       RequestTimeout: 5m
216
217       # Websocket will send a periodic empty event after 'SendTimeout'
218       # if there is no other activity to maintain the connection /
219       # detect dropped connections.
220       SendTimeout: 60s
221
222       WebsocketClientEventQueue: 64
223       WebsocketServerEventQueue: 4
224
225       # Timeout on requests to internal Keep services.
226       KeepServiceRequestTimeout: 15s
227
228     Users:
229       # Config parameters to automatically setup new users.  If enabled,
230       # this users will be able to self-activate.  Enable this if you want
231       # to run an open instance where anyone can create an account and use
232       # the system without requiring manual approval.
233       #
234       # The params AutoSetupNewUsersWith* are meaningful only when AutoSetupNewUsers is turned on.
235       # AutoSetupUsernameBlacklist is a list of usernames to be blacklisted for auto setup.
236       AutoSetupNewUsers: false
237       AutoSetupNewUsersWithVmUUID: ""
238       AutoSetupNewUsersWithRepository: false
239       AutoSetupUsernameBlacklist:
240         arvados: {}
241         git: {}
242         gitolite: {}
243         gitolite-admin: {}
244         root: {}
245         syslog: {}
246         SAMPLE: {}
247
248       # When NewUsersAreActive is set to true, new users will be active
249       # immediately.  This skips the "self-activate" step which enforces
250       # user agreements.  Should only be enabled for development.
251       NewUsersAreActive: false
252
253       # The e-mail address of the user you would like to become marked as an admin
254       # user on their first login.
255       # In the default configuration, authentication happens through the Arvados SSO
256       # server, which uses OAuth2 against Google's servers, so in that case this
257       # should be an address associated with a Google account.
258       AutoAdminUserWithEmail: ""
259
260       # If AutoAdminFirstUser is set to true, the first user to log in when no
261       # other admin users exist will automatically become an admin user.
262       AutoAdminFirstUser: false
263
264       # Email address to notify whenever a user creates a profile for the
265       # first time
266       UserProfileNotificationAddress: ""
267       AdminNotifierEmailFrom: arvados@example.com
268       EmailSubjectPrefix: "[ARVADOS] "
269       UserNotifierEmailFrom: arvados@example.com
270       NewUserNotificationRecipients: {}
271       NewInactiveUserNotificationRecipients: {}
272
273       # Set AnonymousUserToken to enable anonymous user access. You can get
274       # the token by running "bundle exec ./script/get_anonymous_user_token.rb"
275       # in the directory where your API server is running.
276       AnonymousUserToken: ""
277
278     AuditLogs:
279       # Time to keep audit logs, in seconds. (An audit log is a row added
280       # to the "logs" table in the PostgreSQL database each time an
281       # Arvados object is created, modified, or deleted.)
282       #
283       # Currently, websocket event notifications rely on audit logs, so
284       # this should not be set lower than 300 (5 minutes).
285       MaxAge: 336h
286
287       # Maximum number of log rows to delete in a single SQL transaction.
288       #
289       # If MaxDeleteBatch is 0, log entries will never be
290       # deleted by Arvados. Cleanup can be done by an external process
291       # without affecting any Arvados system processes, as long as very
292       # recent (<5 minutes old) logs are not deleted.
293       #
294       # 100000 is a reasonable batch size for most sites.
295       MaxDeleteBatch: 0
296
297       # Attributes to suppress in events and audit logs.  Notably,
298       # specifying {"manifest_text": {}} here typically makes the database
299       # smaller and faster.
300       #
301       # Warning: Using any non-empty value here can have undesirable side
302       # effects for any client or component that relies on event logs.
303       # Use at your own risk.
304       UnloggedAttributes: {}
305
306     SystemLogs:
307
308       # Logging threshold: panic, fatal, error, warn, info, debug, or
309       # trace
310       LogLevel: info
311
312       # Logging format: json or text
313       Format: json
314
315       # Maximum characters of (JSON-encoded) query parameters to include
316       # in each request log entry. When params exceed this size, they will
317       # be JSON-encoded, truncated to this size, and logged as
318       # params_truncated.
319       MaxRequestLogParamsSize: 2000
320
321     Collections:
322       # Allow clients to create collections by providing a manifest with
323       # unsigned data blob locators. IMPORTANT: This effectively disables
324       # access controls for data stored in Keep: a client who knows a hash
325       # can write a manifest that references the hash, pass it to
326       # collections.create (which will create a permission link), use
327       # collections.get to obtain a signature for that data locator, and
328       # use that signed locator to retrieve the data from Keep. Therefore,
329       # do not turn this on if your users expect to keep data private from
330       # one another!
331       BlobSigning: true
332
333       # BlobSigningKey is a string of alphanumeric characters used to
334       # generate permission signatures for Keep locators. It must be
335       # identical to the permission key given to Keep. IMPORTANT: This
336       # is a site secret. It should be at least 50 characters.
337       #
338       # Modifying BlobSigningKey will invalidate all existing
339       # signatures, which can cause programs to fail (e.g., arv-put,
340       # arv-get, and Crunch jobs).  To avoid errors, rotate keys only
341       # when no such processes are running.
342       BlobSigningKey: ""
343
344       # Enable garbage collection of unreferenced blobs in Keep.
345       BlobTrash: true
346
347       # Time to leave unreferenced blobs in "trashed" state before
348       # deleting them, or 0 to skip the "trashed" state entirely and
349       # delete unreferenced blobs.
350       #
351       # If you use any Amazon S3 buckets as storage volumes, this
352       # must be at least 24h to avoid occasional data loss.
353       BlobTrashLifetime: 336h
354
355       # How often to check for (and delete) trashed blocks whose
356       # BlobTrashLifetime has expired.
357       BlobTrashCheckInterval: 24h
358
359       # Maximum number of concurrent "trash blob" and "delete trashed
360       # blob" operations conducted by a single keepstore process. Each
361       # of these can be set to 0 to disable the respective operation.
362       #
363       # If BlobTrashLifetime is zero, "trash" and "delete trash"
364       # happen at once, so only the lower of these two values is used.
365       BlobTrashConcurrency: 4
366       BlobDeleteConcurrency: 4
367
368       # Maximum number of concurrent "create additional replica of
369       # existing blob" operations conducted by a single keepstore
370       # process.
371       BlobReplicateConcurrency: 4
372
373       # Default replication level for collections. This is used when a
374       # collection's replication_desired attribute is nil.
375       DefaultReplication: 2
376
377       # Lifetime (in seconds) of blob permission signatures generated by
378       # the API server. This determines how long a client can take (after
379       # retrieving a collection record) to retrieve the collection data
380       # from Keep. If the client needs more time than that (assuming the
381       # collection still has the same content and the relevant user/token
382       # still has permission) the client can retrieve the collection again
383       # to get fresh signatures.
384       #
385       # This must be exactly equal to the -blob-signature-ttl flag used by
386       # keepstore servers.  Otherwise, reading data blocks and saving
387       # collections will fail with HTTP 403 permission errors.
388       #
389       # Modifying BlobSigningTTL invalidates existing signatures; see
390       # BlobSigningKey note above.
391       #
392       # The default is 2 weeks.
393       BlobSigningTTL: 336h
394
395       # Default lifetime for ephemeral collections: 2 weeks. This must not
396       # be less than BlobSigningTTL.
397       DefaultTrashLifetime: 336h
398
399       # Interval (seconds) between trash sweeps. During a trash sweep,
400       # collections are marked as trash if their trash_at time has
401       # arrived, and deleted if their delete_at time has arrived.
402       TrashSweepInterval: 60s
403
404       # If true, enable collection versioning.
405       # When a collection's preserve_version field is true or the current version
406       # is older than the amount of seconds defined on PreserveVersionIfIdle,
407       # a snapshot of the collection's previous state is created and linked to
408       # the current collection.
409       CollectionVersioning: false
410
411       #   0s = auto-create a new version on every update.
412       #  -1s = never auto-create new versions.
413       # > 0s = auto-create a new version when older than the specified number of seconds.
414       PreserveVersionIfIdle: -1s
415
416       # Managed collection properties. At creation time, if the client didn't
417       # provide the listed keys, they will be automatically populated following
418       # one of the following behaviors:
419       #
420       # * UUID of the user who owns the containing project.
421       #   responsible_person_uuid: {Function: original_owner, Protected: true}
422       #
423       # * Default concrete value.
424       #   foo_bar: {Value: baz, Protected: false}
425       #
426       # If Protected is true, only an admin user can modify its value.
427       ManagedProperties:
428         SAMPLE: {Function: original_owner, Protected: true}
429
430       # In "trust all content" mode, Workbench will redirect download
431       # requests to WebDAV preview link, even in the cases when
432       # WebDAV would have to expose XSS vulnerabilities in order to
433       # handle the redirect (see discussion on Services.WebDAV).
434       #
435       # This setting has no effect in the recommended configuration,
436       # where the WebDAV is configured to have a separate domain for
437       # every collection; in this case XSS protection is provided by
438       # browsers' same-origin policy.
439       #
440       # The default setting (false) is appropriate for a multi-user site.
441       TrustAllContent: false
442
443       # Cache parameters for WebDAV content serving:
444       # * TTL: Maximum time to cache manifests and permission checks.
445       # * UUIDTTL: Maximum time to cache collection state.
446       # * MaxBlockEntries: Maximum number of block cache entries.
447       # * MaxCollectionEntries: Maximum number of collection cache entries.
448       # * MaxCollectionBytes: Approximate memory limit for collection cache.
449       # * MaxPermissionEntries: Maximum number of permission cache entries.
450       # * MaxUUIDEntries: Maximum number of UUID cache entries.
451       WebDAVCache:
452         TTL: 300s
453         UUIDTTL: 5s
454         MaxBlockEntries:      4
455         MaxCollectionEntries: 1000
456         MaxCollectionBytes:   100000000
457         MaxPermissionEntries: 1000
458         MaxUUIDEntries:       1000
459
460     Login:
461       # These settings are provided by your OAuth2 provider (eg
462       # Google) used to perform upstream authentication.
463       ProviderAppSecret: ""
464       ProviderAppID: ""
465
466       # The cluster ID to delegate the user database.  When set,
467       # logins on this cluster will be redirected to the login cluster
468       # (login cluster must appear in RemoteHosts with Proxy: true)
469       LoginCluster: ""
470
471       # How long a cached token belonging to a remote cluster will
472       # remain valid before it needs to be revalidated.
473       RemoteTokenRefresh: 5m
474
475     Git:
476       # Path to git or gitolite-shell executable. Each authenticated
477       # request will execute this program with the single argument "http-backend"
478       GitCommand: /usr/bin/git
479
480       # Path to Gitolite's home directory. If a non-empty path is given,
481       # the CGI environment will be set up to support the use of
482       # gitolite-shell as a GitCommand: for example, if GitoliteHome is
483       # "/gh", then the CGI environment will have GITOLITE_HTTP_HOME=/gh,
484       # PATH=$PATH:/gh/bin, and GL_BYPASS_ACCESS_CHECKS=1.
485       GitoliteHome: ""
486
487       # Git repositories must be readable by api server, or you won't be
488       # able to submit crunch jobs. To pass the test suites, put a clone
489       # of the arvados tree in {git_repositories_dir}/arvados.git or
490       # {git_repositories_dir}/arvados/.git
491       Repositories: /var/lib/arvados/git/repositories
492
493     TLS:
494       Certificate: ""
495       Key: ""
496       Insecure: false
497
498     Containers:
499       # List of supported Docker Registry image formats that compute nodes
500       # are able to use. ` + "`" + `arv keep docker` + "`" + ` will error out if a user tries
501       # to store an image with an unsupported format. Use an empty array
502       # to skip the compatibility check (and display a warning message to
503       # that effect).
504       #
505       # Example for sites running docker < 1.10: {"v1": {}}
506       # Example for sites running docker >= 1.10: {"v2": {}}
507       # Example for disabling check: {}
508       SupportedDockerImageFormats:
509         "v2": {}
510         SAMPLE: {}
511
512       # Include details about job reuse decisions in the server log. This
513       # causes additional database queries to run, so it should not be
514       # enabled unless you expect to examine the resulting logs for
515       # troubleshooting purposes.
516       LogReuseDecisions: false
517
518       # Default value for keep_cache_ram of a container's runtime_constraints.
519       DefaultKeepCacheRAM: 268435456
520
521       # Number of times a container can be unlocked before being
522       # automatically cancelled.
523       MaxDispatchAttempts: 5
524
525       # Default value for container_count_max for container requests.  This is the
526       # number of times Arvados will create a new container to satisfy a container
527       # request.  If a container is cancelled it will retry a new container if
528       # container_count < container_count_max on any container requests associated
529       # with the cancelled container.
530       MaxRetryAttempts: 3
531
532       # The maximum number of compute nodes that can be in use simultaneously
533       # If this limit is reduced, any existing nodes with slot number >= new limit
534       # will not be counted against the new limit. In other words, the new limit
535       # won't be strictly enforced until those nodes with higher slot numbers
536       # go down.
537       MaxComputeVMs: 64
538
539       # Preemptible instance support (e.g. AWS Spot Instances)
540       # When true, child containers will get created with the preemptible
541       # scheduling parameter parameter set.
542       UsePreemptibleInstances: false
543
544       # PEM encoded SSH key (RSA, DSA, or ECDSA) used by the
545       # (experimental) cloud dispatcher for executing containers on
546       # worker VMs. Begins with "-----BEGIN RSA PRIVATE KEY-----\n"
547       # and ends with "\n-----END RSA PRIVATE KEY-----\n".
548       DispatchPrivateKey: none
549
550       # Maximum time to wait for workers to come up before abandoning
551       # stale locks from a previous dispatch process.
552       StaleLockTimeout: 1m
553
554       # The crunch-run command to manage the container on a node
555       CrunchRunCommand: "crunch-run"
556
557       # Extra arguments to add to crunch-run invocation
558       # Example: ["--cgroup-parent-subsystem=memory"]
559       CrunchRunArgumentsList: []
560
561       # Extra RAM to reserve on the node, in addition to
562       # the amount specified in the container's RuntimeConstraints
563       ReserveExtraRAM: 256MiB
564
565       # Minimum time between two attempts to run the same container
566       MinRetryPeriod: 0s
567
568       Logging:
569         # When you run the db:delete_old_container_logs task, it will find
570         # containers that have been finished for at least this many seconds,
571         # and delete their stdout, stderr, arv-mount, crunch-run, and
572         # crunchstat logs from the logs table.
573         MaxAge: 720h
574
575         # These two settings control how frequently log events are flushed to the
576         # database.  Log lines are buffered until either crunch_log_bytes_per_event
577         # has been reached or crunch_log_seconds_between_events has elapsed since
578         # the last flush.
579         LogBytesPerEvent: 4096
580         LogSecondsBetweenEvents: 1
581
582         # The sample period for throttling logs.
583         LogThrottlePeriod: 60s
584
585         # Maximum number of bytes that job can log over crunch_log_throttle_period
586         # before being silenced until the end of the period.
587         LogThrottleBytes: 65536
588
589         # Maximum number of lines that job can log over crunch_log_throttle_period
590         # before being silenced until the end of the period.
591         LogThrottleLines: 1024
592
593         # Maximum bytes that may be logged by a single job.  Log bytes that are
594         # silenced by throttling are not counted against this total.
595         LimitLogBytesPerJob: 67108864
596
597         LogPartialLineThrottlePeriod: 5s
598
599         # Container logs are written to Keep and saved in a
600         # collection, which is updated periodically while the
601         # container runs.  This value sets the interval between
602         # collection updates.
603         LogUpdatePeriod: 30m
604
605         # The log collection is also updated when the specified amount of
606         # log data (given in bytes) is produced in less than one update
607         # period.
608         LogUpdateSize: 32MiB
609
610       SLURM:
611         PrioritySpread: 0
612         SbatchArgumentsList: []
613         SbatchEnvironmentVariables:
614           SAMPLE: ""
615         Managed:
616           # Path to dns server configuration directory
617           # (e.g. /etc/unbound.d/conf.d). If false, do not write any config
618           # files or touch restart.txt (see below).
619           DNSServerConfDir: ""
620
621           # Template file for the dns server host snippets. See
622           # unbound.template in this directory for an example. If false, do
623           # not write any config files.
624           DNSServerConfTemplate: ""
625
626           # String to write to {dns_server_conf_dir}/restart.txt (with a
627           # trailing newline) after updating local data. If false, do not
628           # open or write the restart.txt file.
629           DNSServerReloadCommand: ""
630
631           # Command to run after each DNS update. Template variables will be
632           # substituted; see the "unbound" example below. If false, do not run
633           # a command.
634           DNSServerUpdateCommand: ""
635
636           ComputeNodeDomain: ""
637           ComputeNodeNameservers:
638             "192.168.1.1": {}
639             SAMPLE: {}
640
641           # Hostname to assign to a compute node when it sends a "ping" and the
642           # hostname in its Node record is nil.
643           # During bootstrapping, the "ping" script is expected to notice the
644           # hostname given in the ping response, and update its unix hostname
645           # accordingly.
646           # If false, leave the hostname alone (this is appropriate if your compute
647           # nodes' hostnames are already assigned by some other mechanism).
648           #
649           # One way or another, the hostnames of your node records should agree
650           # with your DNS records and your /etc/slurm-llnl/slurm.conf files.
651           #
652           # Example for compute0000, compute0001, ....:
653           # assign_node_hostname: compute%<slot_number>04d
654           # (See http://ruby-doc.org/core-2.2.2/Kernel.html#method-i-format for more.)
655           AssignNodeHostname: "compute%<slot_number>d"
656
657       JobsAPI:
658         # Enable the legacy 'jobs' API (crunch v1).  This value must be a string.
659         #
660         # Note: this only enables read-only access, creating new
661         # legacy jobs and pipelines is not supported.
662         #
663         # 'auto' -- (default) enable the Jobs API only if it has been used before
664         #         (i.e., there are job records in the database)
665         # 'true' -- enable the Jobs API despite lack of existing records.
666         # 'false' -- disable the Jobs API despite presence of existing records.
667         Enable: 'auto'
668
669         # Git repositories must be readable by api server, or you won't be
670         # able to submit crunch jobs. To pass the test suites, put a clone
671         # of the arvados tree in {git_repositories_dir}/arvados.git or
672         # {git_repositories_dir}/arvados/.git
673         GitInternalDir: /var/lib/arvados/internal.git
674
675       CloudVMs:
676         # Enable the cloud scheduler (experimental).
677         Enable: false
678
679         # Name/number of port where workers' SSH services listen.
680         SSHPort: "22"
681
682         # Interval between queue polls.
683         PollInterval: 10s
684
685         # Shell command to execute on each worker to determine whether
686         # the worker is booted and ready to run containers. It should
687         # exit zero if the worker is ready.
688         BootProbeCommand: "docker ps -q"
689
690         # Minimum interval between consecutive probes to a single
691         # worker.
692         ProbeInterval: 10s
693
694         # Maximum probes per second, across all workers in a pool.
695         MaxProbesPerSecond: 10
696
697         # Time before repeating SIGTERM when killing a container.
698         TimeoutSignal: 5s
699
700         # Time to give up on SIGTERM and write off the worker.
701         TimeoutTERM: 2m
702
703         # Maximum create/destroy-instance operations per second (0 =
704         # unlimited).
705         MaxCloudOpsPerSecond: 0
706
707         # Interval between cloud provider syncs/updates ("list all
708         # instances").
709         SyncInterval: 1m
710
711         # Time to leave an idle worker running (in case new containers
712         # appear in the queue that it can run) before shutting it
713         # down.
714         TimeoutIdle: 1m
715
716         # Time to wait for a new worker to boot (i.e., pass
717         # BootProbeCommand) before giving up and shutting it down.
718         TimeoutBooting: 10m
719
720         # Maximum time a worker can stay alive with no successful
721         # probes before being automatically shut down.
722         TimeoutProbe: 10m
723
724         # Time after shutting down a worker to retry the
725         # shutdown/destroy operation.
726         TimeoutShutdown: 10s
727
728         # Worker VM image ID.
729         ImageID: ""
730
731         # Tags to add on all resources (VMs, NICs, disks) created by
732         # the container dispatcher. (Arvados's own tags --
733         # InstanceType, IdleBehavior, and InstanceSecret -- will also
734         # be added.)
735         ResourceTags:
736           SAMPLE: "tag value"
737
738         # Prefix for predefined tags used by Arvados (InstanceSetID,
739         # InstanceType, InstanceSecret, IdleBehavior). With the
740         # default value "Arvados", tags are "ArvadosInstanceSetID",
741         # "ArvadosInstanceSecret", etc.
742         #
743         # This should only be changed while no cloud resources are in
744         # use and the cloud dispatcher is not running. Otherwise,
745         # VMs/resources that were added using the old tag prefix will
746         # need to be detected and cleaned up manually.
747         TagKeyPrefix: Arvados
748
749         # Cloud driver: "azure" (Microsoft Azure) or "ec2" (Amazon AWS).
750         Driver: ec2
751
752         # Cloud-specific driver parameters.
753         DriverParameters:
754
755           # (ec2) Credentials.
756           AccessKeyID: ""
757           SecretAccessKey: ""
758
759           # (ec2) Instance configuration.
760           SecurityGroupIDs:
761             "SAMPLE": {}
762           SubnetID: ""
763           Region: ""
764           EBSVolumeType: gp2
765           AdminUsername: debian
766
767           # (azure) Credentials.
768           SubscriptionID: ""
769           ClientID: ""
770           ClientSecret: ""
771           TenantID: ""
772
773           # (azure) Instance configuration.
774           CloudEnvironment: AzurePublicCloud
775           ResourceGroup: ""
776           Location: centralus
777           Network: ""
778           Subnet: ""
779           StorageAccount: ""
780           BlobContainer: ""
781           DeleteDanglingResourcesAfter: 20s
782           AdminUsername: arvados
783
784     InstanceTypes:
785
786       # Use the instance type name as the key (in place of "SAMPLE" in
787       # this sample entry).
788       SAMPLE:
789         # Cloud provider's instance type. Defaults to the configured type name.
790         ProviderType: ""
791         VCPUs: 1
792         RAM: 128MiB
793         IncludedScratch: 16GB
794         AddedScratch: 0
795         Price: 0.1
796         Preemptible: false
797
798     Volumes:
799       SAMPLE:
800         AccessViaHosts:
801           SAMPLE:
802             ReadOnly: false
803         ReadOnly: false
804         Replication: 1
805         StorageClasses:
806           default: true
807           SAMPLE: true
808         Driver: s3
809         DriverParameters:
810
811           # for s3 driver
812           AccessKey: aaaaa
813           SecretKey: aaaaa
814           Endpoint: ""
815           Region: us-east-1a
816           Bucket: aaaaa
817           LocationConstraint: false
818           IndexPageSize: 1000
819           ConnectTimeout: 1m
820           ReadTimeout: 10m
821           RaceWindow: 24h
822           UnsafeDelete: false
823
824           # for azure driver
825           StorageAccountName: aaaaa
826           StorageAccountKey: aaaaa
827           StorageBaseURL: core.windows.net
828           ContainerName: aaaaa
829           RequestTimeout: 30s
830           ListBlobsRetryDelay: 10s
831           ListBlobsMaxAttempts: 10
832           MaxGetBytes: 0
833           WriteRaceInterval: 15s
834           WriteRacePollTime: 1s
835
836           # for local directory driver
837           Root: /var/lib/arvados/keep-data
838           Serialize: false
839
840     Mail:
841       MailchimpAPIKey: ""
842       MailchimpListID: ""
843       SendUserSetupNotificationEmail: true
844
845       # Bug/issue report notification to and from addresses
846       IssueReporterEmailFrom: "arvados@example.com"
847       IssueReporterEmailTo: "arvados@example.com"
848       SupportEmailAddress: "arvados@example.com"
849
850       # Generic issue email from
851       EmailFrom: "arvados@example.com"
852     RemoteClusters:
853       "*":
854         Host: ""
855         Proxy: false
856         Scheme: https
857         Insecure: false
858         ActivateUsers: false
859       SAMPLE:
860         # API endpoint host or host:port; default is {id}.arvadosapi.com
861         Host: sample.arvadosapi.com
862
863         # Perform a proxy request when a local client requests an
864         # object belonging to this remote.
865         Proxy: false
866
867         # Default "https". Can be set to "http" for testing.
868         Scheme: https
869
870         # Disable TLS verify. Can be set to true for testing.
871         Insecure: false
872
873         # When users present tokens issued by this remote cluster, and
874         # their accounts are active on the remote cluster, activate
875         # them on this cluster too.
876         ActivateUsers: false
877
878     Workbench:
879       # Workbench1 configs
880       Theme: default
881       ActivationContactLink: mailto:info@arvados.org
882       ArvadosDocsite: https://doc.arvados.org
883       ArvadosPublicDataDocURL: https://playground.arvados.org/projects/public
884       ShowUserAgreementInline: false
885       SecretKeyBase: ""
886
887       # Scratch directory used by the remote repository browsing
888       # feature. If it doesn't exist, it (and any missing parents) will be
889       # created using mkdir_p.
890       RepositoryCache: /var/www/arvados-workbench/current/tmp/git
891
892       # Below is a sample setting of user_profile_form_fields config parameter.
893       # This configuration parameter should be set to either false (to disable) or
894       # to a map as shown below.
895       # Configure the map of input fields to be displayed in the profile page
896       # using the attribute "key" for each of the input fields.
897       # This sample shows configuration with one required and one optional form fields.
898       # For each of these input fields:
899       #   You can specify "Type" as "text" or "select".
900       #   List the "Options" to be displayed for each of the "select" menu.
901       #   Set "Required" as "true" for any of these fields to make them required.
902       # If any of the required fields are missing in the user's profile, the user will be
903       # redirected to the profile page before they can access any Workbench features.
904       UserProfileFormFields:
905         SAMPLE:
906           Type: select
907           FormFieldTitle: Best color
908           FormFieldDescription: your favorite color
909           Required: false
910           Position: 1
911           Options:
912             red: {}
913             blue: {}
914             green: {}
915             SAMPLE: {}
916
917         # exampleTextValue:  # key that will be set in properties
918         #   Type: text  #
919         #   FormFieldTitle: ""
920         #   FormFieldDescription: ""
921         #   Required: true
922         #   Position: 1
923         # exampleOptionsValue:
924         #   Type: select
925         #   FormFieldTitle: ""
926         #   FormFieldDescription: ""
927         #   Required: true
928         #   Position: 1
929         #   Options:
930         #     red: {}
931         #     blue: {}
932         #     yellow: {}
933
934       # Use "UserProfileFormMessage to configure the message you want
935       # to display on the profile page.
936       UserProfileFormMessage: 'Welcome to Arvados. All <span style="color:red">required fields</span> must be completed before you can proceed.'
937
938       # Mimetypes of applications for which the view icon
939       # would be enabled in a collection's show page.
940       # It is sufficient to list only applications here.
941       # No need to list text and image types.
942       ApplicationMimetypesWithViewIcon:
943         cwl: {}
944         fasta: {}
945         go: {}
946         javascript: {}
947         json: {}
948         pdf: {}
949         python: {}
950         x-python: {}
951         r: {}
952         rtf: {}
953         sam: {}
954         x-sh: {}
955         vnd.realvnc.bed: {}
956         xml: {}
957         xsl: {}
958         SAMPLE: {}
959
960       # The maximum number of bytes to load in the log viewer
961       LogViewerMaxBytes: 1M
962
963       # When anonymous_user_token is configured, show public projects page
964       EnablePublicProjectsPage: true
965
966       # By default, disable the "Getting Started" popup which is specific to Arvados playground
967       EnableGettingStartedPopup: false
968
969       # Ask Arvados API server to compress its response payloads.
970       APIResponseCompression: true
971
972       # Timeouts for API requests.
973       APIClientConnectTimeout: 2m
974       APIClientReceiveTimeout: 5m
975
976       # Maximum number of historic log records of a running job to fetch
977       # and display in the Log tab, while subscribing to web sockets.
978       RunningJobLogRecordsToFetch: 2000
979
980       # In systems with many shared projects, loading of dashboard and topnav
981       # cab be slow due to collections indexing; use the following parameters
982       # to suppress these properties
983       ShowRecentCollectionsOnDashboard: true
984       ShowUserNotifications: true
985
986       # Enable/disable "multi-site search" in top nav ("true"/"false"), or
987       # a link to the multi-site search page on a "home" Workbench site.
988       #
989       # Example:
990       #   https://workbench.qr1hi.arvadosapi.com/collections/multisite
991       MultiSiteSearch: ""
992
993       # Should workbench allow management of local git repositories? Set to false if
994       # the jobs api is disabled and there are no local git repositories.
995       Repositories: true
996
997       SiteName: Arvados Workbench
998       ProfilingEnabled: false
999
1000       # This is related to obsolete Google OpenID 1.0 login
1001       # but some workbench stuff still expects it to be set.
1002       DefaultOpenIdPrefix: "https://www.google.com/accounts/o8/id"
1003
1004       # Workbench2 configs
1005       VocabularyURL: ""
1006       FileViewersConfigURL: ""
1007
1008     # Use experimental controller code (see https://dev.arvados.org/issues/14287)
1009     EnableBetaController14287: false
1010 `)