diff --git a/defaults/main.yml b/defaults/main.yml index 4e7dcb1..20c1822 100644 --- a/defaults/main.yml +++ b/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' diff --git a/tasks/main.yml b/tasks/main.yml index e5ad382..b4b34e6 100644 --- a/tasks/main.yml +++ b/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' diff --git a/templates/wrapper.conf.j2 b/templates/wrapper.conf.j2 index 1861079..f272312 100644 --- a/templates/wrapper.conf.j2 +++ b/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