mirror of https://github.com/ceph/ceph-ansible.git
Allow user to specify grafana_server_fqdn
This is needed to get a TLS certificate to validate correctly.
If unspecified, auto-detected grafana_server_addr is used.
Signed-off-by: Paulo Matias <matias@ufscar.br>
(cherry picked from commit 38ce02c2ea
)
pull/5644/head
parent
659262f687
commit
ee920b5a9b
|
@ -762,6 +762,8 @@ dummy:
|
||||||
#grafana_crt: ''
|
#grafana_crt: ''
|
||||||
#grafana_key: ''
|
#grafana_key: ''
|
||||||
#grafana_container_image: "grafana/grafana:5.4.3"
|
#grafana_container_image: "grafana/grafana:5.4.3"
|
||||||
|
# When using https, please fill with a hostname for which grafana_crt is valid.
|
||||||
|
#grafana_server_fqdn: ''
|
||||||
#grafana_container_cpu_period: 100000
|
#grafana_container_cpu_period: 100000
|
||||||
#grafana_container_cpu_cores: 2
|
#grafana_container_cpu_cores: 2
|
||||||
# container_memory is in GB
|
# container_memory is in GB
|
||||||
|
|
|
@ -762,6 +762,8 @@ node_exporter_container_image: registry.redhat.io/openshift4/ose-prometheus-node
|
||||||
#grafana_crt: ''
|
#grafana_crt: ''
|
||||||
#grafana_key: ''
|
#grafana_key: ''
|
||||||
grafana_container_image: registry.redhat.io/rhceph/rhceph-4-dashboard-rhel8:4
|
grafana_container_image: registry.redhat.io/rhceph/rhceph-4-dashboard-rhel8:4
|
||||||
|
# When using https, please fill with a hostname for which grafana_crt is valid.
|
||||||
|
#grafana_server_fqdn: ''
|
||||||
#grafana_container_cpu_period: 100000
|
#grafana_container_cpu_period: 100000
|
||||||
#grafana_container_cpu_cores: 2
|
#grafana_container_cpu_cores: 2
|
||||||
# container_memory is in GB
|
# container_memory is in GB
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: set grafana url
|
- name: set grafana url
|
||||||
command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} dashboard set-grafana-api-url {{ dashboard_protocol }}://{{ grafana_server_addr }}:{{ grafana_port }}"
|
command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} dashboard set-grafana-api-url {{ dashboard_protocol }}://{{ grafana_server_fqdn | default(grafana_server_addr, true) }}:{{ grafana_port }}"
|
||||||
delegate_to: "{{ groups[mon_group_name][0] }}"
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||||
run_once: true
|
run_once: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
|
@ -754,6 +754,8 @@ grafana_admin_user: admin
|
||||||
grafana_crt: ''
|
grafana_crt: ''
|
||||||
grafana_key: ''
|
grafana_key: ''
|
||||||
grafana_container_image: "grafana/grafana:5.4.3"
|
grafana_container_image: "grafana/grafana:5.4.3"
|
||||||
|
# When using https, please fill with a hostname for which grafana_crt is valid.
|
||||||
|
grafana_server_fqdn: ''
|
||||||
grafana_container_cpu_period: 100000
|
grafana_container_cpu_period: 100000
|
||||||
grafana_container_cpu_cores: 2
|
grafana_container_cpu_cores: 2
|
||||||
# container_memory is in GB
|
# container_memory is in GB
|
||||||
|
|
Loading…
Reference in New Issue