DCD-224: Inject JVM heap overrides into the product setenv script.

This commit is contained in:
Steve Smith
2019-04-17 14:21:17 +10:00
parent 8ba280c2e9
commit 87c5b0ba81
4 changed files with 21 additions and 3 deletions

View File

@@ -5,3 +5,14 @@
src: dbconfig.xml.j2
dest: "{{ atl_product_home }}/dbconfig.xml"
owner: "{{ atl_product_user }}"
- name: Override JVM memory settings.
# Ugly but necessary as the product installs this file so we need to make the change here.
lineinfile:
path: "{{ atl_product_installation_target }}/bin/setenv.sh"
backrefs: true
regexp: "^{{ item }}="
line: "{{ item }}=\"{{ atl_jvm_heap }}\""
with_items:
- 'JVM_MINIMUM_MEMORY'
- 'JVM_MAXIMUM_MEMORY'