mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -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_jdbc_user: 'atljira'
|
||||||
atl_jvm_heap: 'PLACEHOLDER'
|
atl_jvm_heap: 'PLACEHOLDER'
|
||||||
atl_cluster_node_id: 'FAKEID'
|
atl_cluster_node_id: 'FAKEID'
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: linux_common
|
- role: linux_common
|
||||||
- role: product_common
|
- role: product_common
|
||||||
|
|||||||
@@ -17,8 +17,11 @@ def test_dbconfig_file(host):
|
|||||||
def test_setenv_file(host):
|
def test_setenv_file(host):
|
||||||
f = host.file('/opt/atlassian/jira-software/current/bin/setenv.sh')
|
f = host.file('/opt/atlassian/jira-software/current/bin/setenv.sh')
|
||||||
assert f.exists
|
assert f.exists
|
||||||
assert f.contains('JVM_MINIMUM_MEMORY="PLACEHOLDER"')
|
assert f.contains('^JVM_MINIMUM_MEMORY="PLACEHOLDER"')
|
||||||
assert f.contains('JVM_MAXIMUM_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):
|
def test_cluster_file(host):
|
||||||
f = host.file('/var/atlassian/application-data/jira/cluster.properties')
|
f = host.file('/var/atlassian/application-data/jira/cluster.properties')
|
||||||
|
|||||||
@@ -29,6 +29,18 @@
|
|||||||
- 'JVM_MINIMUM_MEMORY'
|
- 'JVM_MINIMUM_MEMORY'
|
||||||
- 'JVM_MAXIMUM_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
|
- name: Create application directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
|||||||
@@ -6,10 +6,6 @@ After=network-online.target
|
|||||||
User={{ atl_product_user }}
|
User={{ atl_product_user }}
|
||||||
Group={{ atl_product_user }}
|
Group={{ atl_product_user }}
|
||||||
|
|
||||||
# NOTE: Additional environment vars are set in {{ atl_product_installation_current }}/bin/setenv.sh
|
|
||||||
Environment="JIRA_HOME={{ atl_product_home }}"
|
|
||||||
Environment="CATALINA_OPTS={{ atl_catalina_opts }} {{ atl_catalina_opts_extra }}"
|
|
||||||
|
|
||||||
ExecStart={{ atl_product_installation_current }}/bin/start-jira.sh -fg
|
ExecStart={{ atl_product_installation_current }}/bin/start-jira.sh -fg
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user