mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
adding mesh.properties and handlers
This commit is contained in:
19
roles/bitbucket_mesh/handlers/main.yml
Normal file
19
roles/bitbucket_mesh/handlers/main.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Restart Product
|
||||||
|
service:
|
||||||
|
name: "{{ atl_systemd_service_name }}"
|
||||||
|
state: restarted
|
||||||
|
when:
|
||||||
|
- atl_startup_restart
|
||||||
|
- molecule_yml is not defined
|
||||||
|
no_log: true
|
||||||
|
|
||||||
|
- name: Enable Product
|
||||||
|
service:
|
||||||
|
name: "{{ atl_systemd_service_name }}"
|
||||||
|
enabled: true
|
||||||
|
when:
|
||||||
|
- atl_startup_enable
|
||||||
|
- molecule_yml is not defined
|
||||||
|
no_log: true
|
||||||
@@ -55,3 +55,11 @@
|
|||||||
state: link
|
state: link
|
||||||
when:
|
when:
|
||||||
- mesh_extract.changed | bool
|
- mesh_extract.changed | bool
|
||||||
|
|
||||||
|
- name: template out mesh.properties
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: bitbucket-mesh.properties.j2
|
||||||
|
dest: "{{ atl_home_base }}/{{ atl_product_edition }}/mesh.properties"
|
||||||
|
owner: "{{ atl_product_user }}"
|
||||||
|
group: "{{ atl_product_user }}"
|
||||||
|
mode: 0600
|
||||||
|
|||||||
10
roles/bitbucket_mesh/templates/mesh.properties.j2
Normal file
10
roles/bitbucket_mesh/templates/mesh.properties.j2
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# Listen for gRPC requests on all interfaces by default. This allows connecting to the node remotely
|
||||||
|
grpc.server.address=0.0.0.0
|
||||||
|
|
||||||
|
authentication.token={{ ansible_hostname | hash('md5') }}
|
||||||
|
node.name= {{ ansible_hostname }}
|
||||||
|
node.id={{ ansible_hostname }}
|
||||||
|
|
||||||
|
jmx.enabled={{ mesh_jmx_enabled | default(false) }}
|
||||||
|
management.metrics.export.jmx.domain={{ mesh_jmx_export_domain | default("") }}
|
||||||
|
metrics.tags.host={{ ansible_hostname }}
|
||||||
Reference in New Issue
Block a user