siamaksade.openshift_sonatype_nexus
Ansible Role: Sonatype Nexus on OpenShift
=========
This Ansible Role helps you install Sonatype Nexus 3 on OpenShift. It includes setup for Red Hat enterprise maven repositories in Nexus.
Note: This role now only supports Sonatype Nexus 3.
Role Variables
Variable | Default Value | Description |
---|---|---|
nexus_service_name |
nexus | Name of the Nexus service on OpenShift |
nexus_image_version |
3.12.1 | Version of Nexus image from Docker Hub |
nexus_volume_capacity |
10Gi | Storage size for Nexus |
nexus_max_memory |
2Gi | Maximum memory for Nexus container |
nexus_min_memory |
512Mi | Minimum memory for Nexus container |
nexus_max_cpu |
1 | Maximum CPU for Nexus container |
nexus_min_cpu |
200m | Minimum CPU for Nexus container |
nexus_admin_user |
adminuser | Admin username for Nexus |
nexus_admin_password |
admin123 | Admin password for Nexus |
current_nexus_admin_password |
admin123 | Admin password for existing instance |
project_name |
nexus | Name for the OpenShift project |
project_display_name |
Nexus | Display name for the OpenShift project |
project_desc |
Nexus Repository Manager | Description for the OpenShift project |
project_annotations |
- | Annotations for the OpenShift project |
openshift_cli |
oc | Command for OpenShift CLI (e.g. auth) |
OpenShift Version Compatibility
When you add this role in requirements.yml
, specify the version you want to use:
- src: siamaksade.openshift_nexus
version: 1.1.0
Here are the tested and verified OpenShift version combinations:
Role Version | OpenShift Version |
---|---|
1.0.x | 3.7.x |
1.1.x | 3.9.x, 3.10.x, 3.11.x |
If your version combination isn’t listed, it doesn’t mean it won't work. The table only shows what we have tested.
Example Playbook
name: Example Playbook
hosts: localhost
tasks:
- import_role:
name: siamaksade.openshift_nexus
vars:
project_name: "cicd-project"
openshift_cli: "oc --server http://master:8443"
Installa
ansible-galaxy install siamaksade.openshift_sonatype_nexus
Licenza
Unknown
Download
14.7k
Proprietario
Product Manager at Red Hat