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?a=commitdiff_plain;ds=inline;h=515ac02aa77bae08338edef40d406cf4ede66dc4;hp=aabd8f52713e848502b4b202b7ff1fd6f3319a68;p=infra%2Fstack%2Fkubernetes.git 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 044007c..60ed129 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.