-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into improve_readme
- Loading branch information
Showing
23 changed files
with
196 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
maas_open_tcp_ports: | ||
maas_pg_tcp_ports: | ||
- 5432 | ||
- "{{ 9187 if o11y_enable else (false) }}" | ||
|
||
maas_open_udp_ports: [] | ||
maas_pg_udp_ports: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
maas_open_tcp_ports: | ||
maas_pgproxy_tcp_ports: | ||
- 5432 | ||
- "{{ 5051 if 'maas_postgres' in group_names else (false) }}" | ||
|
||
maas_open_udp_ports: | ||
maas_pgproxy_udp_ports: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
maas_open_tcp_ports: | ||
maas_proxy_tcp_ports: | ||
- "{{ 5432 if 'maas_postgres' in group_names else (false) }}" | ||
- "{{ maas_proxy_port }}" | ||
|
||
maas_open_udp_ports: | ||
maas_proxy_udp_ports: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
- name: "Create ha_cluster_exporter directory" | ||
ansible.builtin.file: | ||
path: "{{ ha_exp_dir }}" | ||
state: "directory" | ||
mode: 0755 | ||
|
||
- name: "Download latest ha_cluster_exporter release" | ||
ansible.builtin.get_url: | ||
url: "{{ ha_exp_pkg }}" | ||
dest: "{{ ha_exp_dir ~ '/ha_cluster_exporter.gz' }}" | ||
|
||
- name: "Extract ha_cluster_exporter" | ||
ansible.builtin.command: | ||
cmd: gunzip "{{ ha_exp_dir }}/ha_cluster_exporter.gz" | ||
creates: "{{ ha_exp_dir ~ '/ha_cluster_exporter' }}" | ||
|
||
- name: "Make agent executable" | ||
ansible.builtin.file: | ||
path: "{{ ha_exp_dir ~ '/ha_cluster_exporter' }}" | ||
mode: 0755 | ||
|
||
- name: "Create a service file" | ||
ansible.builtin.copy: | ||
dest: /etc/systemd/system/ha_cluster_exporter.service | ||
mode: 0644 | ||
content: | | ||
[Unit] | ||
Description=Prometheus exporter for Pacemaker HA clusters metrics | ||
After=network.target | ||
[Service] | ||
Type=simple | ||
ExecStart={{ ha_exp_dir }}/ha_cluster_exporter $ARGS | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
Restart=always | ||
[Install] | ||
WantedBy=multi-user.target | ||
notify: "Start HA clusters metrics agent" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- name: "Start grafana agent" | ||
ansible.builtin.systemd: | ||
name: telemetry | ||
enabled: true | ||
state: "restarted" | ||
daemon-reload: true |
Oops, something went wrong.