- Java 8
http://<server>:8081
The default login credentials are : admin / admin123
- hosts: servers
roles:
- ansible-role-nexus
## Default variables
nexus_application_port: 8081
nexus_application_host: '0.0.0.0'
nexus_user: 'nexus'
nexus_group: 'nexus'
nexus_scripts_allowCreation: false
nexus_context_path: '/' . The is added almost like that: http://:/
nexus_java_home: '/usr/lib/jvm/java-8-oracle'
nexus_cleanup: 'true' or 'false'. Enable to remove the downloaded tar.gz file.
nexus_update: 'true' or 'false'. Enable to update an installed nexus.
nexus_service_restart: 'always'. Enable de configure the systemd.service Restart
(no, on-success, on-failure, on-abnormal, on-watchdog, on-abort).
nexus_scripts_allowCreation: 'true' or 'false'. Default is false. Enable the creation of file on Nexus server via Nexus API (/service/rest/v1/script).
You can override some parameters in bin/nexus.vmoptions
, the default values are below:
nexus_vmoptions:
- key: '-Xms'
value: '1200M'
- key: '-Xmx'
value: '1200M'
- key: '-XX:MaxDirectMemorySize='
value: '2G'
- key: '-XX:LogFile='
value: '../sonatype-work/nexus3/log/jvm.log'
- key: '-Dkaraf.data='
value: '../sonatype-work/nexus3'
- key: '-Djava.io.tmpdir='
value: '../sonatype-work/nexus3/tmp'
You can override the cluster routing allocation parameters with this kind of arborescence :
cluster_routing_allocation:
disk:
watermark:
low: 5gb
MIT
This role was created in 2016 by Olivier Locard on the behalf of Deveryware.