mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-11 07:23:08 -06:00
41 lines
1.7 KiB
YAML
41 lines
1.7 KiB
YAML
---
|
|
- name: aws_bitbucket_mesh_node.yml
|
|
hosts: aws_node_local
|
|
become: true
|
|
module_defaults:
|
|
ansible.builtin.uri:
|
|
http_agent: "ansible-httpget_{{ ansible_play_name }}"
|
|
ansible.builtin.get_url:
|
|
http_agent: "ansible-httpget_{{ ansible_play_name }}"
|
|
|
|
vars:
|
|
# See group_vars/aws_node_local.yml, which pull vars from the environment.
|
|
atl_product_family: "stash"
|
|
atl_product_edition: "mesh"
|
|
atl_product_user: "bitbucket"
|
|
atl_product_home: "{{ atl_home_base }}/{{ atl_product_edition }}"
|
|
atl_systemd_service_name: "mesh.service"
|
|
atl_startup_systemd_params:
|
|
- 'UMask=0027'
|
|
- 'Environment=MESH_HOME={{ atl_home_base }}/{{ atl_product_edition }}'
|
|
- 'Environment=JAVA_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_MAXIMUM_MEMORY={{ atl_jvm_heap }}'
|
|
- 'PassEnvironment=JMX_REMOTE_AUTH JMX_PASSWORD_FILE JAVA_HOME'
|
|
|
|
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_systemd_service_target: "multi-user.target"
|
|
atl_startup_exec_options: []
|
|
|
|
roles:
|
|
- role: linux_common
|
|
- role: aws_common
|
|
- role: aws_shared_fs_config
|
|
- role: product_common
|
|
- role: bitbucket_mesh
|
|
- role: product_startup
|