Skip to content
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

Use mirsg infra collection #108

Merged
merged 10 commits into from
Jun 28, 2024
Merged

Use mirsg infra collection #108

merged 10 commits into from
Jun 28, 2024

Conversation

ruaridhg
Copy link
Contributor

@ruaridhg ruaridhg commented Jun 27, 2024

Fixes #109
Fixes #102

Use Ansible roles from the mirsg.infrastructure Collection for installing / configuring XNAT.

  • Includes changes from previous PR
  • add role to mount EFS (this was previously part of the provision role, but the mirsg.infrastructure.provision role is used instead)
  • remove unused roles and playbooks
  • add a template for the nginx config for use by the mirsg.infrastructure.nginx role
  • mirsg.infrastructure include a fix for Container service and XNAT compatible with Docker > 24 #102 (the Docker version is pinned to <25)

There are a lot of changes here, but they are all internal (i.e. there are no changes in how to use this repo, and users shouldn't need to update their terraform.tfvars files etc.)

p-j-smith and others added 9 commits May 31, 2024 11:37
This PR was deployed on the
[arc-playpen-collaborations](https://ucl-cloud.awsapps.com/start/#/) and
moves towards integrating the [updated ansible collection version
1.22.0](https://github.com/UCL-MIRSG/ansible-collection-infra) into this
repo.

Merge into `use-mirsg-infra-collection` branch before merging into
`main`

Changes in this PR:
- Added `./show_resources_to_delete.sh` script to find VPC dependencies
for manual deletion if `terraform destroy` command has been interrupted
when deploying locally
- `configure/playbooks/group_vars/xnat.yml` nginx_upstream_port changed
which addresses [this issue in this repo at
least](UCL-MIRSG/ansible-collection-infra#119)
- `configure/playbooks/roles/setup_xnat_project/tasks/upload_data.yml`
task added to remove python3-requests library before installing
necessary Python dependencies on host
- `configure/playbooks/templates/nginx_reverse_proxy_aws.j2` was added
to fix nginx error caused by aws url being long
- Changed group from `xnat_container_service` to `container_service` in
`provision/templates/ansible_hosts.yml.tftpl` to match playbook names

---------

Co-authored-by: ruaridhg <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul Smith <[email protected]>
@ruaridhg ruaridhg requested a review from p-j-smith June 27, 2024 16:08
Copy link
Contributor Author

@ruaridhg ruaridhg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a self-review here since I opened the PR, but it was mostly @p-j-smith's commits so LGTM!

Copy link
Contributor

@p-j-smith p-j-smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing and tidying this up @ruaridhg! Have you deployed this to check it's working?

@p-j-smith p-j-smith merged commit 4ecf187 into main Jun 28, 2024
2 checks passed
@p-j-smith p-j-smith deleted the use-mirsg-infra-collection branch June 28, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use mirsg.infrastructure Ansible collection Container service and XNAT compatible with Docker > 24
2 participants