Fix 5478 move Swift settings to domain.xml for better governability, no disk access of properties file, leaner class#5680
Conversation
Remove function that loads swift.properties
Add public class variable identifier prefix
pdurbin
left a comment
There was a problem hiding this comment.
The docs at a future version of http://guides.dataverse.org/en/4.11/installation/config.html#swift-storage need to change, right?
That page can be found at doc/sphinx-guides/source/installation/config.rst if you could please edit it.
|
@pdurbin, I'm on it! |
|
At least pretty please avoid |
…entation Add full create-password-alias instructions in documentation Add missing swiftEndPoint
| ./asadmin $ASADMIN_OPTS create-jvm-options "\-Ddataverse.file.swift-username.endpoint1=your-username" | ||
| ./asadmin $ASADMIN_OPTS create-jvm-options "\-Ddataverse.file.swift-password.endpoint1='${ALIAS=your-password}'" | ||
| ./asadmin $ASADMIN_OPTS create-jvm-options "\-Ddataverse.file.swift-endpoint.endpoint1=your-swift-endpoint" | ||
| ./asadmin $ASADMIN_OPTS create-jvm-options "\-Ddataverse.file.swift.defaultEndpoint=endpoint1" |
There was a problem hiding this comment.
Some typos here. In the docs you use .file., but in the code .files. is used.
There was a problem hiding this comment.
Thank you for noticing that! Fixed.
|
I read http://irclog.iq.harvard.edu/dataverse/2019-03-25#i_88874 and I would like to add one more setting that has |
|
Sorry! Closed by accident :/ |
@carlosmcgregor no problem, I pulled this out of code review until you're done. Please let us know when we should take another look. Thanks! Also, you're welcome to join us in IRC if you'd like. 😄 |
|
Sorry, @pdurbin ! I should have added that |
|
@carlosmcgregor oh! I understand now. It looks like @poikilotherm is handling some of those "dash" JVM options over at https://github.com/IQSS/dataverse-kubernetes/blob/655b92d60b1a09e109154c9c237525827dbf4dff/dataverse-k8s/bin/init_1_configure.sh#L94 I'll move this issue and pull request back to code review. Thanks for explaining the scope. |
|
@carlosmcgregor Feel free to leave a comment on gdcc/dataverse-kubernetes#11 :-) |
|
Thank you @pdurbin and @poikilotherm ! |
|
@carlosmcgregor Hi, would you mind refreshing this branch from /develop? We've since released v4.12 and your branch shows 4.11. This is causing a build issue. Once this is adjusted I will test and merge. Thanks! Kevin |
|
Done, @kcondon ! Thank you :) |
Related Issues
Pull Request Checklist
Changes to Documentation
The following commands are now needed to configure Swift:
It makes use of the
create-password-aliasapproach that @pdurbin pointed out (thank you!). Otherwise, all settings remain the same as withswift.properties. Some additional settings that were hardcoded (i.e. separator and temporary URL expiry time) were moved to the settings. These are:Please let me know if you have further questions regarding the changes that were made!