From: Cian Johnston Date: Wed, 19 May 2021 08:35:43 +0000 (+0000) Subject: ceph: disable dashboard X-Git-Url: https://gerrit.nordix.org/gitweb?p=infra%2Fstack%2Fkubernetes.git;a=commitdiff_plain;h=refs%2Fchanges%2F55%2F8855%2F2 ceph: disable dashboard Change-Id: I436761c4e14da72af87bd102d3146944c63b9f96 Signed-off-by: Cian Johnston --- diff --git a/apps/ceph/kubespray/playbooks/roles/common/vars/main.yml b/apps/ceph/kubespray/playbooks/roles/common/vars/main.yml index 2f5eafa..195033c 100644 --- a/apps/ceph/kubespray/playbooks/roles/common/vars/main.yml +++ b/apps/ceph/kubespray/playbooks/roles/common/vars/main.yml @@ -56,4 +56,6 @@ rook_filesystem: "{{ lookup('env', 'ROOK_FS') | default('false', true) }}" rook_filesystem_name: "{{ lookup('env', 'ROOK_FILESYSTEM_NAME') | default('rookfs', true) }}" rook_filesystem_storageclass_name: "{{ lookup('env', 'ROOK_FILESYSTEM_STORAGECLASS_NAME') | default('csi-cephfs', true) }}" +rook_ceph_dashboard_enabled: "{{ lookup('env', 'ROOK_CEPH_DASHBOARD_ENABLED') | default(false, true) }}" + # vim: set ts=2 sw=2 expandtab: diff --git a/apps/ceph/kubespray/playbooks/roles/install/tasks/main.yaml b/apps/ceph/kubespray/playbooks/roles/install/tasks/main.yaml index e9282a2..a0cf404 100644 --- a/apps/ceph/kubespray/playbooks/roles/install/tasks/main.yaml +++ b/apps/ceph/kubespray/playbooks/roles/install/tasks/main.yaml @@ -195,5 +195,6 @@ k8s: state: present definition: "{{ lookup('template', 'external-dashboard-https.yaml.j2') }}" + when: rook_ceph_dashboard_enabled|bool # vim: set ts=2 sw=2 expandtab: diff --git a/apps/ceph/kubespray/playbooks/roles/install/templates/cluster.yaml.j2 b/apps/ceph/kubespray/playbooks/roles/install/templates/cluster.yaml.j2 index c49d1c3..df8cd16 100644 --- a/apps/ceph/kubespray/playbooks/roles/install/templates/cluster.yaml.j2 +++ b/apps/ceph/kubespray/playbooks/roles/install/templates/cluster.yaml.j2 @@ -75,7 +75,7 @@ spec: # enabled: true # enable the ceph dashboard for viewing cluster status dashboard: - enabled: true + enabled: {{ rook_ceph_dashboard_enabled }} # serve the dashboard under a subpath (useful when you are accessing the dashboard via a reverse proxy) # urlPrefix: /ceph-dashboard # serve the dashboard at the given port.