-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathdataverse-optional-settings.yml
More file actions
48 lines (38 loc) · 2.37 KB
/
dataverse-optional-settings.yml
File metadata and controls
48 lines (38 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
- name: enable AllowApiTokenLookupViaApi for those so inclined
shell: 'curl -X PUT -d true http://localhost:8080/api/admin/settings/:AllowApiTokenLookupViaApi'
when: dataverse.api.allow_lookup == true
- name: disable FilePIDs when set to false
shell: 'curl -X PUT -d {{ dataverse.options.filepids }} {{ dataverse.api.location }}/admin/settings/:FilePIDsEnabled'
when: dataverse.options.filepids == false
- name: set MaxFileUploadSizeInBytes when provided
shell: 'curl -X PUT -d {{ dataverse.options.maxfileuploadsizeinbytes }} {{ dataverse.api.location }}/admin/settings/:MaxFileUploadSizeInBytes'
when: dataverse.options.maxfileuploadsizeinbytes
- name: set Provenance when provided
shell: 'curl -X PUT -d {{ dataverse.options.provcollectionenabled }} {{ dataverse.api.location }}/admin/settings/:ProvCollectionEnabled'
when: dataverse.options.provcollectionenabled
- name: set TabularIngestSizeLimit when provided
shell: 'curl -X PUT -d {{ dataverse.options.tabularingestsizelimit }} {{ dataverse.api.location }}/admin/settings/:TabularIngestSizeLimit'
when: dataverse.options.tabularingestsizelimit
# Our automated harvesting server tests rely on the paging limits to be set to something low
# (so that the behavior may be triggered and tested without having to create and export 100 datasets)
- name: set page size limit for ListIdentifiers
become: yes
become_user: "{{ dataverse.payara.user }}"
shell: '{{ payara_dir}}/bin/asadmin create-jvm-options "-Ddataverse.oai.server.maxidentifiers={{ harvest.oaiserver.maxidentifiers }}"'
when: harvest.oaiserver.maxidentifiers is defined
- name: set page size limit for ListRecords
become: yes
become_user: "{{ dataverse.payara.user }}"
shell: '{{ payara_dir}}/bin/asadmin create-jvm-options "-Ddataverse.oai.server.maxrecords={{ harvest.oaiserver.maxrecords }}"'
when: harvest.oaiserver.maxrecords is defined
- name: set DATAVERSE_FEATURE_API_SESSION_AUTH=1 when told
become: yes
become_user: "{{ dataverse.payara.user }}"
shell: '{{ payara_dir}}/bin/asadmin create-jvm-options "-Ddataverse.feature.api-session-auth=true"'
when: dataverse.api.session_auth == true
- name: set DATAVERSE_FEATURE_API_BEARER_AUTH=1 when told
become: yes
become_user: "{{ dataverse.payara.user }}"
shell: '{{ payara_dir}}/bin/asadmin create-jvm-options "-Ddataverse.feature.api-bearer-auth=true"'
when: dataverse.api.bearer_auth == true