Browse Source

Set a director where to save the user prefs

master
Andrea Dell'Amico 2 years ago
parent
commit
7b99cf7231
  1. 1
      defaults/main.yml
  2. 7
      tasks/main.yml
  3. 1
      templates/wrapper.conf.j2

1
defaults/main.yml

@ -14,6 +14,7 @@ nexus_data_basedir: /data
nexus_data_dir: '{{ nexus_data_basedir }}/sonatype-work/nexus'
nexus_logdir: '/var/log/nexus'
nexus_accesslog_maxhistory: 20
nexus_wrapper_prefs_root: '{{ nexus_install_basedir }}/nexus_prefsdir'
nexus_wrapper_initmemory: 256
nexus_wrapper_maxmemory: 1024
nexus_wrapper_conf_dir: '{{ nexus_webapp_dir }}/bin/jsw/conf'

7
tasks/main.yml

@ -15,8 +15,11 @@
tags: [ 'nexus', 'nexus_oss' ]
- block:
- name: Create the nexus wrapper log directory
file: dest={{ nexus_wrapper_logdir }} state=directory owner={{ nexus_user }} group={{ nexus_user }} mode=0755
- name: Create the nexus wrapper log and prefs directories
file: dest={{ item }} state=directory owner={{ nexus_user }} group={{ nexus_user }} mode=0755
with_items:
- '{{ nexus_wrapper_logdir }}'
- '{{ nexus_wrapper_prefs_root }}'
- name: Install the nexus wrapper configuration
template: src=wrapper.conf.j2 dest={{ nexus_wrapper_conf_dir }}/wrapper.conf owner=root group=root mode='0644'

1
templates/wrapper.conf.j2

@ -30,6 +30,7 @@ wrapper.java.additional.1=-Djava.io.tmpdir=./tmp
wrapper.java.additional.2=-Djava.net.preferIPv4Stack=true
wrapper.java.additional.3=-Dcom.sun.jndi.ldap.connect.pool.protocol="plain ssl"
wrapper.java.additional.3.stripquotes=TRUE
wrapper.java.additional.4=-Djava.util.prefs.userRoot={{ nexus_wrapper_prefs_root }}
#wrapper.java.additional.4=-Xdebug
#wrapper.java.additional.5=-Xnoagent
#wrapper.java.additional.6=-Djava.compiler=NONE

Loading…
Cancel
Save