Skip to content

Include a client playbook #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,19 @@ None.
Example Playbook
----------------

Configure all hosts as CVMFS clients with configurations for the Galaxy CVMFS repositories:
## Configure a client

There is a sample playbook in `client_playbook.yml` that can be used to
configure a CVMFS client for Galaxy's CVMFS repositories. Note that this role
does not currently work on Ubuntu 24.04. To use, update the inventory file in
`inventory/clients.ini` to include the hosts you want to configure and run the
playbook with:

```sh
ansible-playbook -i inventory/clients.ini client_playbook.yml
```

Alternatively, create your own playbook file and reference the role:

```yaml
- name: CVMFS
Expand All @@ -152,6 +164,8 @@ Configure all hosts as CVMFS clients with configurations for the Galaxy CVMFS re
- galaxyproject.cvmfs
```

## Configure a Stratum 1 (mirror) server

Create a Stratum 1 (mirror) of the Galaxy CVMFS repositories and configure clients to prefer your Stratum 1 (assuming
you have configured hosts in groups `cvmfsclients` and `cvmfsstratum1servers`):

Expand All @@ -175,6 +189,8 @@ you have configured hosts in groups `cvmfsclients` and `cvmfsstratum1servers`):
- galaxyproject.cvmfs
```

## Configure a Stratum 0 (release manager) server

Create your own CVMFS infrastructure. Run once without keys (new keys will be generated on repo creation):

```yaml
Expand Down
10 changes: 10 additions & 0 deletions client_playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- name: Install CVMFS Client
hosts: cvmfs_clients
vars:
cvmfs_role: client
galaxy_cvmfs_repos_enabled: config-repo
cvmfs_quota_limit: 100

roles:
- .
8 changes: 8 additions & 0 deletions inventory/clients.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[cvmfs_clients]
cvmfs1 ansible_host=44.220.170.126

[all:vars]
ansible_user='ubuntu'
ansible_become='yes'
ansible_ssh_extra_args='-o StrictHostKeyChecking=no'
ansible_ssh_private_key_file=/path/to/your/private/key.pem