mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-15 09:23:06 -06:00
adding the jmx file back as mesh is failing to start without it
This commit is contained in:
@@ -14,9 +14,11 @@
|
|||||||
- 'Environment=MESH_HOME={{ atl_home_base }}/{{ atl_product_edition }}'
|
- 'Environment=MESH_HOME={{ atl_home_base }}/{{ atl_product_edition }}'
|
||||||
- 'Environment=JAVA_HOME=/usr/lib/jvm/java'
|
- 'Environment=JAVA_HOME=/usr/lib/jvm/java'
|
||||||
- 'Environment=JRE_HOME=/usr/lib/jvm/java'
|
- 'Environment=JRE_HOME=/usr/lib/jvm/java'
|
||||||
|
- 'Environment=JMX_REMOTE_AUTH=password'
|
||||||
|
- 'Environment=JMX_PASSWORD_FILE={{ atl_home_base }}/{{ atl_product_edition }}/jmx.access'
|
||||||
- 'Environment="JVM_SUPPORT_RECOMMENDED_ARGS=-Dmesh.enabled=true -Dplugin.bitbucket-git.mesh.sidecar.child-process=false -Dcom.sun.management.jmxremote.port=4444 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath={{ atl_home_base }}/{{ atl_product_edition }}/log"'
|
- 'Environment="JVM_SUPPORT_RECOMMENDED_ARGS=-Dmesh.enabled=true -Dplugin.bitbucket-git.mesh.sidecar.child-process=false -Dcom.sun.management.jmxremote.port=4444 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath={{ atl_home_base }}/{{ atl_product_edition }}/log"'
|
||||||
- 'Environment=JVM_MAXIMUM_MEMORY={{ atl_jvm_heap }}'
|
- 'Environment=JVM_MAXIMUM_MEMORY={{ atl_jvm_heap }}'
|
||||||
- 'PassEnvironment=JAVA_HOME'
|
- 'PassEnvironment=JMX_REMOTE_AUTH JMX_PASSWORD_FILE JAVA_HOME'
|
||||||
|
|
||||||
atl_startup_exec_path: "{{ mesh_install_dir }}/current/bin/start-mesh.sh"
|
atl_startup_exec_path: "{{ mesh_install_dir }}/current/bin/start-mesh.sh"
|
||||||
atl_stop_exec_path: "{{ mesh_install_dir }}/current/bin/stop-mesh.sh"
|
atl_stop_exec_path: "{{ mesh_install_dir }}/current/bin/stop-mesh.sh"
|
||||||
|
|||||||
@@ -56,6 +56,14 @@
|
|||||||
when:
|
when:
|
||||||
- mesh_extract.changed | bool
|
- mesh_extract.changed | bool
|
||||||
|
|
||||||
|
- name: touch the jmx password file
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ atl_home_base }}/{{ atl_product_edition }}/jmx.access"
|
||||||
|
state: touch
|
||||||
|
owner: "{{ atl_product_user_uid }}"
|
||||||
|
group: "{{ atl_product_user_uid }}"
|
||||||
|
mode: 0600
|
||||||
|
|
||||||
- name: template out mesh.properties
|
- name: template out mesh.properties
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: mesh.properties.j2
|
src: mesh.properties.j2
|
||||||
|
|||||||
Reference in New Issue
Block a user