mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-28 02:58:18 +08:00
Merge pull request #18598 from sanjaysrikakulam/webdav_as_user_file_source
Bring your own file sources: Add the WebDAV template and configuration
This commit is contained in:
@@ -350,6 +350,19 @@ configuration).
|
||||
|
||||

|
||||
|
||||
#### `webdav`
|
||||
|
||||
The syntax for the `configuration` section of `webdav` templates looks like this.
|
||||
|
||||

|
||||
|
||||
At runtime, after the `configuration` template is expanded, the resulting dictionary
|
||||
passed to Galaxy's file source plugin infrastructure looks like this and should match a subset
|
||||
of what you'd be able to add directly to `file_sources_conf.yml` (Galaxy's global file source
|
||||
configuration).
|
||||
|
||||

|
||||
|
||||
### YAML Syntax
|
||||
|
||||

|
||||
@@ -398,6 +411,14 @@ and you are comfortable with it storing your user's secrets.
|
||||
:language: yaml
|
||||
```
|
||||
|
||||
#### Allow Users to Define WebDAV Servers as File Sources
|
||||
|
||||
```{literalinclude} ../../../lib/galaxy/files/templates/examples/production_webdav.yml
|
||||
:language: yaml
|
||||
```
|
||||
|
||||

|
||||
|
||||
## Playing Nicer with Ansible
|
||||
|
||||
Many large instances of Galaxy are configured with Ansible and much of the existing administrator
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 316 KiB After Width: | Height: | Size: 362 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
@@ -15,6 +15,8 @@ from galaxy.files.templates.models import (
|
||||
PosixFileSourceTemplateConfiguration,
|
||||
S3FSFileSourceConfiguration,
|
||||
S3FSFileSourceTemplateConfiguration,
|
||||
WebdavFileSourceConfiguration,
|
||||
WebdavFileSourceTemplateConfiguration,
|
||||
)
|
||||
from galaxy.objectstore.templates.models import (
|
||||
AwsS3ObjectStoreConfiguration,
|
||||
@@ -53,6 +55,8 @@ class_to_diagram = {
|
||||
S3FSFileSourceConfiguration: "file_source_s3fs_configuration",
|
||||
FtpFileSourceTemplateConfiguration: "file_source_ftp_configuration_template",
|
||||
FtpFileSourceConfiguration: "file_source_ftp_configuration",
|
||||
WebdavFileSourceTemplateConfiguration: "file_source_webdav_configuration_template",
|
||||
WebdavFileSourceConfiguration: "file_source_webdav_configuration",
|
||||
}
|
||||
|
||||
for clazz, diagram_name in class_to_diagram.items():
|
||||
|
||||
@@ -22,6 +22,7 @@ SEARCH_FOR = [
|
||||
"user_file_source_form_full_aws_public.png",
|
||||
"user_file_source_form_full_azure.png",
|
||||
"user_file_source_form_full_ftp.png",
|
||||
"user_file_source_form_full_webdav.png",
|
||||
]
|
||||
|
||||
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 193 KiB |
Reference in New Issue
Block a user