mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 08:23:06 -06:00
Merged in bugfix/ITOPSENG-283-crowd-ansible-is-ignoring-t (pull request #39)
crowd was ignoring xmx & xms in setenv.sh Approved-by: Adam Brokes <abrokes@atlassian.com>
This commit is contained in:
@@ -5,16 +5,19 @@
|
||||
src: server.xml.j2
|
||||
dest: "{{ atl_product_installation_versioned }}/apache-tomcat/conf/server.xml"
|
||||
|
||||
- name: Override JVM memory settings.
|
||||
# Ugly but necessary as the product installs this file so we need to make the change here.
|
||||
- name: Set the minimum heap size (Xms)
|
||||
lineinfile:
|
||||
path: "{{ atl_product_installation_versioned }}/apache-tomcat/bin/setenv.sh"
|
||||
backrefs: true
|
||||
regexp: "^{{ item }}="
|
||||
line: "{{ item }}=\"{{ atl_jvm_heap }}\""
|
||||
with_items:
|
||||
- 'JVM_MINIMUM_MEMORY'
|
||||
- 'JVM_MAXIMUM_MEMORY'
|
||||
regexp: '^(.*)Xms(\d+\w)(\s.*)$'
|
||||
line: '\1Xms{{ atl_jvm_heap }}\3'
|
||||
backrefs: yes
|
||||
|
||||
- name: Set the maxmimum heap size (Xmx)
|
||||
lineinfile:
|
||||
path: "{{ atl_product_installation_versioned }}/apache-tomcat/bin/setenv.sh"
|
||||
regexp: '^(.*)Xmx(\d+\w)(\s.*)$'
|
||||
line: '\1Xmx{{ atl_jvm_heap }}\3'
|
||||
backrefs: yes
|
||||
|
||||
- name: Set Crowd home directory in crowd-init.properties file
|
||||
lineinfile:
|
||||
|
||||
Reference in New Issue
Block a user