Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Support for composer plugin #36

Open
Vetrenik opened this issue Nov 22, 2024 · 1 comment
Open

Support for composer plugin #36

Vetrenik opened this issue Nov 22, 2024 · 1 comment

Comments

@Vetrenik
Copy link

Hello, everyone!

Is there any plans to bring support for composer plugin?

https://github.com/sonatype-nexus-community/nexus-repository-composer

@brianveltman
Copy link

This can already be installed with the current version of the role.
All you need to do is build the plugin according to their instructions: https://github.com/sonatype-nexus-community/nexus-repository-composer?tab=readme-ov-file#easiest-install

Once you have the .kar file available you can install it into your Nexus using this role and this variable:

nexus_plugin_urls:
  - "{{ nexus_plugin_base_url }}/nexus/nexus-repository-terraform-0.0.8-bundle.kar"

nexus_plugin_base_url is in our case an internal file hosting service. But this can be any http/https url, even Nexus itself, but be aware Nexus has to restart during the installation process, so you can not host the plugin on the same instance you want to install it on, unless you're in a HA setup.

Just a note: This role has moved to a collection: https://github.com/CloudKrafter/nexus-ansible-collection/tree/main/roles/nexus_oss

Instructions on how to use the collection see:
https://github.com/CloudKrafter/nexus-ansible-collection/blob/main/CHANGELOG.md#v190---2024-11-24

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants