Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove standard JDBC driver installation steps #280

Merged
merged 1 commit into from
May 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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