Skip to content

Commit

Permalink
#6 remove standard JDBC driver installation steps (#280)
Browse files Browse the repository at this point in the history
Co-authored-by: Don Sizemore <don.sizemore@github.com>
  • Loading branch information
donsizemore and Don Sizemore committed May 15, 2023
1 parent d578e57 commit 046be59
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions tasks/payara.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@
when: dataverse.payara.zipurl is match(".*glassfish-4.1.zip")
notify: enable and restart payara

# python installer fails to place jdbc driver for whatever reason
# and we want this configurable for testing updated drivers anyway
# we don't need the JDBC driver any more but let's keep custom JDBC URLs
- name: set jdbcurl
set_fact:
jdbc_url='{{ db.postgres.jdbcurl }}'
Expand All @@ -91,22 +90,6 @@
dest: '{{ payara_dir }}/glassfish/lib/'
when: jdbc_url|default(None)

- name: allow installer write access for release jdbc driver
file:
path: '{{ payara_dir }}/glassfish/lib'
state: directory
owner: '{{ dataverse.payara.user }}'
when: not jdbc_url|default(None)

- name: install release jdbc driver
copy:
src: "{{ item }}"
dest: "{{ payara_dir }}/glassfish/lib/"
remote_src: true
when: not jdbc_url|default(None)
notify: enable and restart payara
with_fileglob: /tmp/dvinstall/pgdriver/postgresql-*.jar

- name: increase resource limits for payara
blockinfile:
path: /etc/security/limits.conf
Expand Down

0 comments on commit 046be59

Please sign in to comment.