From 65a983911da98739fa17344d1975f51dacc08530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Thu, 2 Feb 2017 11:22:55 +0100 Subject: [PATCH] common: ability to disable handler osd health check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien Han --- group_vars/all.yml.sample | 1 + roles/ceph-common/defaults/main.yml | 1 + roles/ceph-common/handlers/validate-osd.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/group_vars/all.yml.sample b/group_vars/all.yml.sample index 9eb23f1cf..e6fccbb3b 100644 --- a/group_vars/all.yml.sample +++ b/group_vars/all.yml.sample @@ -330,6 +330,7 @@ dummy: #handler_health_mon_check_delay: 10 #handler_health_osd_check_retries: 40 #handler_health_osd_check_delay: 30 +#handler_health_osd_check: true ################### # CONFIG OVERRIDE # diff --git a/roles/ceph-common/defaults/main.yml b/roles/ceph-common/defaults/main.yml index 50bd4b3dd..f20fd3a6c 100644 --- a/roles/ceph-common/defaults/main.yml +++ b/roles/ceph-common/defaults/main.yml @@ -322,6 +322,7 @@ handler_health_mon_check_retries: 5 handler_health_mon_check_delay: 10 handler_health_osd_check_retries: 40 handler_health_osd_check_delay: 30 +handler_health_osd_check: true ################### # CONFIG OVERRIDE # diff --git a/roles/ceph-common/handlers/validate-osd.yml b/roles/ceph-common/handlers/validate-osd.yml index b83d0952d..99d1c2f87 100644 --- a/roles/ceph-common/handlers/validate-osd.yml +++ b/roles/ceph-common/handlers/validate-osd.yml @@ -17,3 +17,4 @@ retries: "{{ handler_health_osd_check_retries }}" delay: "{{ handler_health_osd_check_delay }}" delegate_to: "{{ groups[mon_group_name][0] }}" + when: handler_health_osd_check