Skip to content

Commit

Permalink
Combine install_xnat & install_container_service playbooks (#89)
Browse files Browse the repository at this point in the history
Fixes #72 #73. And hopefully SRR.
  • Loading branch information
paddyroddy authored Mar 27, 2024
1 parent 69aeeaf commit 85a0c99
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 29 deletions.
1 change: 0 additions & 1 deletion .github/workflows/molecule-install-xnat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- "roles/xnat/**"
- "roles/xnat_container_service/**"
- "playbooks/install_xnat.yml"
- "playbooks/install_container_service.yml"
- "playbooks/molecule/**/xnat/**"
- ".github/workflows/molecule-install-xnat.yml"
release:
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ collection can be used to configure infrastructure for deploying XNAT and OMERO.

### Playbooks

| Name | Description |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| [setup_user_accounts.yml](playbooks/setup_user_accounts.yml) | Create OS user accounts a group of servers `target`, which defaults to `all`. |
| [install_monitoring.yml](playbooks/install_monitoring.yml) | Configure a host to collect metrics from client machines. |
| [install_xnat.yml](playbooks/install_xnat.yml) | Install XNAT on two-tier infrastructure. |
| [install_xnat_container_service.yml](playbooks/install_xnat_container_service.yml) | Install XNAT Container service (Docker host and client). |
| Name | Description |
| ------------------------------------------------------------ | --------------------------------------------------------------------------------------------- |
| [setup_user_accounts.yml](playbooks/setup_user_accounts.yml) | Create OS user accounts a group of servers `target`, which defaults to `all`. |
| [install_monitoring.yml](playbooks/install_monitoring.yml) | Configure a host to collect metrics from client machines. |
| [install_xnat.yml](playbooks/install_xnat.yml) | Install XNAT on two-tier infrastructure with XNAT Container Service (Docker host and client). |

## External requirements

Expand Down
19 changes: 0 additions & 19 deletions playbooks/install_container_service.yml

This file was deleted.

19 changes: 19 additions & 0 deletions playbooks/install_xnat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,22 @@
roles:
- role: mirsg.infrastructure.xnat
- role: mirsg.infrastructure.firewalld

- name: Setup Container Service on hosts
hosts: container_service_host
become: true
gather_facts: true

roles:
- role: mirsg.infrastructure.provision
- role: mirsg.infrastructure.install_python
- role: mirsg.infrastructure.docker
- role: mirsg.infrastructure.firewalld

- name: Setup Container Service on clients (i.e. the web servers)
hosts: container_service_client
become: true
gather_facts: true

roles:
- role: mirsg.infrastructure.xnat_container_service
3 changes: 0 additions & 3 deletions playbooks/molecule/resources/xnat/converge.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
---
- name: Install XNAT
ansible.builtin.import_playbook: mirsg.infrastructure.install_xnat

- name: Install Container Service
ansible.builtin.import_playbook: mirsg.infrastructure.install_container_service

0 comments on commit 85a0c99

Please sign in to comment.