adding mesh.properties and handlers

This commit is contained in:
Geoff Jacobs
2022-09-01 09:43:26 +10:00
parent c481e9dd05
commit cfa4debc7e
3 changed files with 37 additions and 0 deletions

View 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

View File

@@ -55,3 +55,11 @@
state: link
when:
- 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

View 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 }}