mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-360: Move environment settings to setenv.sh for consitency.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
atl_jdbc_user: 'atljira'
|
||||
atl_jvm_heap: 'PLACEHOLDER'
|
||||
atl_cluster_node_id: 'FAKEID'
|
||||
|
||||
roles:
|
||||
- role: linux_common
|
||||
- role: product_common
|
||||
|
||||
@@ -17,8 +17,11 @@ def test_dbconfig_file(host):
|
||||
def test_setenv_file(host):
|
||||
f = host.file('/opt/atlassian/jira-software/current/bin/setenv.sh')
|
||||
assert f.exists
|
||||
assert f.contains('JVM_MINIMUM_MEMORY="PLACEHOLDER"')
|
||||
assert f.contains('JVM_MAXIMUM_MEMORY="PLACEHOLDER"')
|
||||
assert f.contains('^JVM_MINIMUM_MEMORY="PLACEHOLDER"')
|
||||
assert f.contains('^JVM_MAXIMUM_MEMORY="PLACEHOLDER"')
|
||||
assert f.contains('^JIRA_HOME="/var/atlassian/application-data/jira"')
|
||||
assert f.contains('^export CATALINA_OPTS="')
|
||||
|
||||
|
||||
def test_cluster_file(host):
|
||||
f = host.file('/var/atlassian/application-data/jira/cluster.properties')
|
||||
|
||||
@@ -29,6 +29,18 @@
|
||||
- 'JVM_MINIMUM_MEMORY'
|
||||
- 'JVM_MAXIMUM_MEMORY'
|
||||
|
||||
- name: Set Jira home directory
|
||||
lineinfile:
|
||||
path: "{{ atl_product_installation_versioned }}/bin/setenv.sh"
|
||||
regexp: "JIRA_HOME="
|
||||
line: 'JIRA_HOME="{{ atl_product_home }}"'
|
||||
|
||||
- name: Set the Tomcat environment
|
||||
lineinfile:
|
||||
path: "{{ atl_product_installation_versioned }}/bin/setenv.sh"
|
||||
insertafter: "EOF"
|
||||
line: 'export CATALINA_OPTS="${CATALINA_OPTS} {{ atl_catalina_opts }} {{ atl_catalina_opts_extra }}"'
|
||||
|
||||
- name: Create application directories
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
|
||||
Reference in New Issue
Block a user