Skip to content

Commit c35f73d

Browse files
authored
Merge pull request #6975 from mvdbeek/ansible-cvmfs-update
Update CVMFS training material
2 parents aba07fe + ebd19db commit c35f73d

3 files changed

Lines changed: 54 additions & 13 deletions

File tree

topics/admin/tutorials/apptainer/tutorial.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,17 +204,19 @@ Now, we will configure Galaxy to run tools using Apptainer containers, which wil
204204
> ```diff
205205
> --- a/group_vars/galaxyservers.yml
206206
> +++ b/group_vars/galaxyservers.yml
207-
> @@ -78,6 +78,9 @@ galaxy_config:
207+
> @@ -78,8 +78,11 @@ galaxy_config:
208208
> tus_upload_store: "{{ galaxy_tus_upload_store }}"
209209
> # CVMFS
210-
> tool_data_table_config_path: /cvmfs/data.galaxyproject.org/byhand/location/tool_data_table_conf.xml,/cvmfs/data.galaxyproject.org/managed/location/tool_data_table_conf.xml
210+
> tool_data_table_config_path:
211+
> - /cvmfs/data.galaxyproject.org/byhand/location/tool_data_table_conf.xml
212+
> - /cvmfs/data.galaxyproject.org/managed/location/tool_data_table_conf.xml
211213
> + # Tool Dependencies
212214
> + dependency_resolvers_config_file: "{{ galaxy_config_dir }}/dependency_resolvers_conf.xml"
213215
> + container_resolvers_config_file: "{{ galaxy_config_dir }}/container_resolvers_conf.yml"
214216
> gravity:
215217
> process_manager: systemd
216218
> galaxy_root: "{{ galaxy_root }}/server"
217-
> @@ -117,6 +120,12 @@ galaxy_config_files:
219+
> @@ -118,5 +121,11 @@ galaxy_config_files:
218220
> - src: files/galaxy/themes.yml
219221
> dest: "{{ galaxy_config.galaxy.themes_config_file }}"
220222
>
@@ -226,7 +228,6 @@ Now, we will configure Galaxy to run tools using Apptainer containers, which wil
226228
> +
227229
> galaxy_extra_dirs:
228230
> - /data
229-
>
230231
> {% endraw %}
231232
> ```
232233
> {: data-commit="Configure the container and dependency resolvers"}

topics/admin/tutorials/cvmfs-manual/tutorial.md

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,31 @@ The configuration is not complex for CVMFS:
101101
>
102102
> This tells CVMFS to mount the Galaxy reference data repository and use a specific location for the cache which is limited to 500MB in size and to use the instance's geo-location to choose the best CVMFS repo server to connect to. You can use the `cvmfs_quota_limit` role variable to control this setting.
103103
>
104+
> If you also want to mount the BRC Analytics pathogen data and Vertebrate Genomes Project repositories, include them in `CVMFS_REPOSITORIES`:
105+
>
106+
> ```
107+
> CVMFS_REPOSITORIES="data.galaxyproject.org,brc.galaxyproject.org,vgp.galaxyproject.org"
108+
> ```
109+
>
104110
> > <tip-title>What is a good size for CVMFS_QUOTA_LIMIT?</tip-title>
105111
> > In production UseGalaxy.org.au uses 100GB, different sites have different needs and you can make your cache smaller depending on your usage. E.g. if your users only use one dataset from the reference data (e.g. just hg38) then perhaps you don't need such a large cache.
106112
> {: .tip}
107113
>
108114
> 2. Create a `/etc/cvmfs/domain.d/galaxyproject.org.conf` file with the following contents:
109115
>
110116
> ```
111-
> CVMFS_SERVER_URL="http://cvmfs1-tacc0.galaxyproject.org/cvmfs/@fqrn@;http://cvmfs1-iu0.galaxyproject.org/cvmfs/@fqrn@;http://cvmfs1-psu0.galaxyproject.org/cvmfs/@fqrn@;http://galaxy.jrc.ec.europa.eu:8008/cvmfs/@fqrn@;http://cvmfs1-mel0.gvl.org.au/cvmfs/@fqrn@;http://cvmfs1-ufr0.galaxyproject.eu/cvmfs/@fqrn@"
117+
> CVMFS_SERVER_URL="http://cvmfs1-psu0.galaxyproject.org/cvmfs/@fqrn@;http://cvmfs1-iu0.galaxyproject.org/cvmfs/@fqrn@;http://cvmfs1-tacc0.galaxyproject.org/cvmfs/@fqrn@;http://cvmfs1-mel0.gvl.org.au/cvmfs/@fqrn@;http://cvmfs1-ufr0.galaxyproject.eu/cvmfs/@fqrn@"
112118
> ```
113119
>
114120
> This is a list of the available stratum 1 servers that have this repo.
115121
>
116-
> 3. Create a `/etc/cvmfs/keys/data.galaxyproject.org.pub` file with the following contents:
122+
> 3. Create the key directory:
123+
>
124+
> ```
125+
> sudo mkdir -p /etc/cvmfs/keys/galaxyproject.org
126+
> ```
127+
>
128+
> 4. Create a `/etc/cvmfs/keys/galaxyproject.org/data.galaxyproject.org.pub` file with the following contents:
117129
>
118130
> ```
119131
> -----BEGIN PUBLIC KEY-----
@@ -127,7 +139,23 @@ The configuration is not complex for CVMFS:
127139
> -----END PUBLIC KEY-----
128140
> ```
129141
>
130-
> 4. Make a directory for the cache files
142+
> 5. Create a `/etc/cvmfs/keys/galaxyproject.org/galaxyproject.org.pub` file with the following contents:
143+
>
144+
> ```
145+
> -----BEGIN PUBLIC KEY-----
146+
> MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuJZTWTY3/dBfspFKifv8
147+
> TWuuT2Zzoo1cAskKpKu5gsUAyDFbZfYBEy91qbLPC3TuUm2zdPNsjCQbbq1Liufk
148+
> uNPZJ8Ubn5PR6kndwrdD13NVHZpXVml1+ooTSF5CL3x/KUkYiyRz94sAr9trVoSx
149+
> THW2buV7ADUYivX7ofCvBu5T6YngbPZNIxDB4mh7cEal/UDtxV683A/5RL4wIYvt
150+
> S5SVemmu6Yb8GkGwLGmMVLYXutuaHdMFyKzWm+qFlG5JRz4okUWERvtJ2QAJPOzL
151+
> mAG1ceyBFowj/r3iJTa+Jcif2uAmZxg+cHkZG5KzATykF82UH1ojUzREMMDcPJi2
152+
> dQIDAQAB
153+
> -----END PUBLIC KEY-----
154+
> ```
155+
>
156+
> The BRC Analytics and VGP repositories use this common Galaxy Project key. The `singularity.galaxyproject.org` repository also uses it, and the data repository is expected to transition to it eventually.
157+
>
158+
> 6. Make a directory for the cache files
131159
>
132160
> ```
133161
> sudo mkdir /srv/cvmfs
@@ -206,4 +234,3 @@ Probe the connection.
206234
## Look at the repository
207235
208236
Now to configure Galaxy to use the CVMFS references we have just installed, see [the Ansible tutorial.]({% link topics/admin/tutorials/cvmfs/tutorial.md %}#configuring-galaxy-to-use-the-cvmfs-references)
209-

topics/admin/tutorials/cvmfs/tutorial.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ The Galaxy project supports a few CVMFS repositories.
143143
| Repository | Repository Address | Contents |
144144
| ---------- | ------------------ | -------- |
145145
| Reference Data and Indices | `data.galaxyproject.org` | Genome sequences and their tool indices, Galaxy `.loc` files for them as well |
146+
| BRC Analytics Data | `brc.galaxyproject.org` | Pathogen sequences and indexes available in Galaxy for BRC Analytics |
147+
| Vertebrate Genomes Project | `vgp.galaxyproject.org` | Assemblies and indexes from the Vertebrate Genomes Project |
146148
| Singularity Containers | `singularity.galaxyproject.org` | Singularity containers for everything in Biocontainers for use in Galaxy systems |
147149
| Galaxy Main Configuration | `main.galaxyproject.org` | The configuration files etc for Galaxy Main (usegalaxy.org) |
148150

@@ -522,29 +524,40 @@ Now all we need to do is tell Galaxy how to find it! This tutorial assumes that
522524
> ```diff
523525
> --- a/group_vars/galaxyservers.yml
524526
> +++ b/group_vars/galaxyservers.yml
525-
> @@ -76,6 +76,8 @@ galaxy_config:
527+
> @@ -76,6 +76,10 @@ galaxy_config:
526528
> # TUS
527529
> galaxy_infrastructure_url: "https://{{ inventory_hostname }}"
528530
> tus_upload_store: "{{ galaxy_tus_upload_store }}"
529531
> + # CVMFS
530-
> + tool_data_table_config_path: /cvmfs/data.galaxyproject.org/byhand/location/tool_data_table_conf.xml,/cvmfs/data.galaxyproject.org/managed/location/tool_data_table_conf.xml
532+
> + tool_data_table_config_path:
533+
> + - /cvmfs/data.galaxyproject.org/byhand/location/tool_data_table_conf.xml
534+
> + - /cvmfs/data.galaxyproject.org/managed/location/tool_data_table_conf.xml
531535
> gravity:
532536
> process_manager: systemd
533537
> galaxy_root: "{{ galaxy_root }}/server"
534538
> {% endraw %}
535539
> ```
536540
> {: data-commit="Add tool_data_table_config_path to group variables" data-ref="gvconf"}
537541
>
542+
> If you have also enabled the BRC Analytics or VGP CVMFS repositories, add their data table configuration files to the same list:
543+
>
544+
> ```yaml
545+
> tool_data_table_config_path:
546+
> - /cvmfs/data.galaxyproject.org/byhand/location/tool_data_table_conf.xml
547+
> - /cvmfs/data.galaxyproject.org/managed/location/tool_data_table_conf.xml
548+
> - /cvmfs/brc.galaxyproject.org/config/tool_data_table_conf.xml
549+
> - /cvmfs/vgp.galaxyproject.org/config/tool_data_table_conf.xml
550+
> ```
551+
>
538552
> > This time I'm going to edit the groupvars galaxyservers.yml file. And in
539553
> > our Galaxy section. Which is here. Which is here. At the bottom of that
540554
> > I'm going to add a variable called tool_data_table_config_path. And I'm
541555
> > going to point it to the locations that we um I showed you before. um I
542556
> > can't remember what they are off the top of my head but luckily they're
543557
> > inside this solution box and so I will just copy them. And paste. And as
544558
> > you can see pointing to /cvmfs/data.galaxyproject.org/byhand/location
545-
> > and then that tool data table conf xml file. And then we have a list
546-
> > here and we separate it by commas and then we point it to the second
547-
> > one. Right, so we save this file.
559+
> > and then that tool data table conf xml file. And then we have a YAML list
560+
> > here and we point it to the second one. Right, so we save this file.
548561
> {: .spoken data-visual="terminal" data-ref="gvconf"}
549562
>
550563
> 2. Re-run the playbook

0 commit comments

Comments
 (0)