diff --git a/group_vars/all.yml.sample b/group_vars/all.yml.sample index 2f502d03b..ab9f2eb91 100644 --- a/group_vars/all.yml.sample +++ b/group_vars/all.yml.sample @@ -754,6 +754,7 @@ dummy: # We only need this for SSL (https) connections #dashboard_crt: '' #dashboard_key: '' +#dashboard_tls_external: false #dashboard_grafana_api_no_ssl_verify: False #dashboard_rgw_api_user_id: ceph-dashboard #dashboard_rgw_api_admin_resource: '' diff --git a/group_vars/rhcs.yml.sample b/group_vars/rhcs.yml.sample index 654d5329d..1389defbd 100644 --- a/group_vars/rhcs.yml.sample +++ b/group_vars/rhcs.yml.sample @@ -754,6 +754,7 @@ ceph_docker_registry_auth: true # We only need this for SSL (https) connections #dashboard_crt: '' #dashboard_key: '' +#dashboard_tls_external: false #dashboard_grafana_api_no_ssl_verify: False #dashboard_rgw_api_user_id: ceph-dashboard #dashboard_rgw_api_admin_resource: '' diff --git a/roles/ceph-dashboard/tasks/configure_dashboard.yml b/roles/ceph-dashboard/tasks/configure_dashboard.yml index 2405ad69e..461d893d0 100644 --- a/roles/ceph-dashboard/tasks/configure_dashboard.yml +++ b/roles/ceph-dashboard/tasks/configure_dashboard.yml @@ -25,6 +25,7 @@ owner: root group: root mode: 0440 + remote_src: "{{ dashboard_tls_external | bool }}" delegate_to: "{{ groups[mon_group_name][0] }}" when: dashboard_crt | length > 0 @@ -35,6 +36,7 @@ owner: root group: root mode: 0440 + remote_src: "{{ dashboard_tls_external | bool }}" delegate_to: "{{ groups[mon_group_name][0] }}" when: dashboard_key | length > 0 diff --git a/roles/ceph-defaults/defaults/main.yml b/roles/ceph-defaults/defaults/main.yml index c28473a16..045bfed77 100644 --- a/roles/ceph-defaults/defaults/main.yml +++ b/roles/ceph-defaults/defaults/main.yml @@ -746,6 +746,7 @@ dashboard_admin_user_ro: false # We only need this for SSL (https) connections dashboard_crt: '' dashboard_key: '' +dashboard_tls_external: false dashboard_grafana_api_no_ssl_verify: False dashboard_rgw_api_user_id: ceph-dashboard dashboard_rgw_api_admin_resource: '' diff --git a/roles/ceph-grafana/tasks/configure_grafana.yml b/roles/ceph-grafana/tasks/configure_grafana.yml index f38eb1c1c..5275b89f9 100644 --- a/roles/ceph-grafana/tasks/configure_grafana.yml +++ b/roles/ceph-grafana/tasks/configure_grafana.yml @@ -75,6 +75,7 @@ owner: "{{ grafana_uid }}" group: "{{ grafana_uid }}" mode: 0640 + remote_src: "{{ dashboard_tls_external | bool }}" when: - grafana_crt | length > 0 - dashboard_protocol == "https" @@ -86,6 +87,7 @@ owner: "{{ grafana_uid }}" group: "{{ grafana_uid }}" mode: 0440 + remote_src: "{{ dashboard_tls_external | bool }}" when: - grafana_key | length > 0 - dashboard_protocol == "https"