]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Prometheus APIs are only available through plain http
authorPaulo Matias <matias@ufscar.br>
Tue, 17 Mar 2020 02:39:58 +0000 (23:39 -0300)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 7 Apr 2020 18:51:23 +0000 (20:51 +0200)
Trying to access these APIs through TLS produces "Could not reach
external API" errors in Ceph dashboard.

Signed-off-by: Paulo Matias <matias@ufscar.br>
roles/ceph-dashboard/tasks/configure_dashboard.yml

index eff7abd8c4a1127a57e10c8b392242e641ebbe7b..db832f8fcc8d9dda801650c0ccbfb31fa4a6fe46 100644 (file)
   changed_when: false
 
 - name: set alertmanager host
-  command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} dashboard set-alertmanager-api-host {{ dashboard_protocol }}://{{ grafana_server_addrs | first }}:{{ alertmanager_port }}"
+  command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} dashboard set-alertmanager-api-host http://{{ grafana_server_addrs | first }}:{{ alertmanager_port }}"
   delegate_to: "{{ groups[mon_group_name][0] }}"
   run_once: true
   changed_when: false
 
 - name: set prometheus host
-  command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} dashboard set-prometheus-api-host {{ dashboard_protocol }}://{{ grafana_server_addrs | first }}:{{ prometheus_port }}"
+  command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} dashboard set-prometheus-api-host http://{{ grafana_server_addrs | first }}:{{ prometheus_port }}"
   delegate_to: "{{ groups[mon_group_name][0] }}"
   run_once: true
   changed_when: false