ceph: disable dashboard 55/8855/2 master
authorCian Johnston <cian.johnston@est.tech>
Wed, 19 May 2021 08:35:43 +0000 (08:35 +0000)
committerCian Johnston <cian.johnston@est.tech>
Fri, 21 May 2021 10:34:00 +0000 (10:34 +0000)
Change-Id: I436761c4e14da72af87bd102d3146944c63b9f96
Signed-off-by: Cian Johnston <cian.johnston@est.tech>
apps/ceph/kubespray/playbooks/roles/common/vars/main.yml
apps/ceph/kubespray/playbooks/roles/install/tasks/main.yaml
apps/ceph/kubespray/playbooks/roles/install/templates/cluster.yaml.j2

index 2f5eafa..195033c 100644 (file)
@@ -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:
index e9282a2..a0cf404 100644 (file)
   k8s:
     state: present
     definition: "{{ lookup('template', 'external-dashboard-https.yaml.j2') }}"
+  when: rook_ceph_dashboard_enabled|bool
 
 # vim: set ts=2 sw=2 expandtab:
index c49d1c3..df8cd16 100644 (file)
@@ -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.