Skip to content

Commit 29a50e9

Browse files
Updated roles, renamed variables and removed unused files
Signed-off-by: CODING-Enthusiast9857 <madhavison06@gmail.com>
1 parent b1a7a3f commit 29a50e9

File tree

11 files changed

+37
-40
lines changed

11 files changed

+37
-40
lines changed

roles/grafana_bridge_configure/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,17 @@ Requirements
3737
-------------
3838

3939
Public repository available, you'll need to download it from here https://github.com/IBM/ibm-spectrum-scale-bridge-for-grafana
40+
41+
42+
Role Variables
43+
---------------
44+
45+
The following variables can be customized to configure the IBM Spectrum Scale Bridge for Grafana:
46+
47+
- **opentsdb_port**: Port for OpenTSDB plugin. Example: `4242` for HTTP or `8443` for HTTPS
48+
49+
- **prometheus_port**: Port for Prometheus metrics endpoint. Example: `9250`
50+
51+
- **encoded_password**: Encoded password used for Grafana Bridge authentication. Example: `TXlWZXJ5U3Ryb25nUGFzc3cwcmQhCg`
52+
53+
- **transport**: Transport protocol for Grafana Bridge. Options: `http` or `https`

roles/grafana_bridge_configure/tasks/ports.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
path: "{{ config_file }}"
44
section: opentsdb_plugin
55
option: port
6-
value: "{{ grafana_bridge_opentsdb_port }}"
6+
value: "{{ scale_grafana_bridge.opentsdb_port }}"
77
backup: yes
88
when:
99
- config_stat.stat.exists
@@ -13,7 +13,7 @@
1313
path: "{{ config_file }}"
1414
section: prometheues_exporter_plugin
1515
option: prometheus
16-
value: "{{ grafana_bridge_prometheus_port }}"
16+
value: "{{ scale_grafana_bridge.prometheus_port }}"
1717
backup: yes
1818
when:
1919
- config_stat.stat.exists

roles/grafana_bridge_configure/tasks/secret.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
path: "{{ config_file }}"
44
section: basic_auth
55
option: password
6-
value: "{{ grafana_bridge_encoded_password }}"
6+
value: "{{ scale_grafana_bridge.encoded_password }}"
77
backup: yes
88
when:
99
- config_stat.stat.exists

roles/grafana_bridge_install/tasks/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
yum:
55
name: grafana-bridge
66
state: present
7-
8-
- import_tasks: wrapper.yml
9-
tags: wrapper

roles/grafana_bridge_install/tasks/wrapper.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

roles/grafana_bridge_install/vars/main.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

roles/grafana_bridge_verify/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,14 @@ Requirements
3737
-------------
3838

3939
Public repository available, you'll need to download it from here https://github.com/IBM/ibm-spectrum-scale-bridge-for-grafana
40+
41+
Role Variables
42+
---------------
43+
44+
The following variables can be customized to configure the IBM Spectrum Scale Bridge for Grafana:
45+
46+
- **opentsdb_port**: Port for OpenTSDB plugin. Example: `4242` for HTTP or `8443` for HTTPS
47+
48+
- **prometheus_port**: Port for Prometheus metrics endpoint. Example: `9250`
49+
50+
- **log_file**: log file name e.g., `ibmgrafanabridge.log` to store logging information

roles/grafana_bridge_verify/tasks/log.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- name: verify | Check Grafana Bridge logs for startup message
2-
shell: "grep 'server started' {{ grafana_bridge_log_file }}"
2+
shell: "grep 'server started' {{ log_file }}"
33
register: log_check
44
run_once: true
55
ignore_errors: true

roles/grafana_bridge_verify/tasks/ports.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
- name: verify | Check if HTTP port is listening
22
wait_for:
3-
port: "{{ grafana_bridge_opentsdb_port }}"
3+
port: "{{ scale_grafana_bridge.opentsdb_port }}"
44
timeout: 5
55
register: http_port_check
66
run_once: true
77

88
- name: verify | Check if Prometheus port is listening
99
wait_for:
10-
port: "{{ grafana_bridge_prometheus_port }}"
10+
port: "{{ scale_grafana_bridge.prometheus_port }}"
1111
timeout: 5
1212
register: prometheus_port_check
1313
run_once: true
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
# vars file for grafana_bridge_verify
3-
grafana_bridge_log_file: "/var/adm/ras/ibmgrafanabridge.log"
3+
log_file: "/var/adm/ras/ibmgrafanabridge.log"

0 commit comments

Comments
 (0)