From 1d54527820065a6505c2ba1d150cc4993d7bfd7c Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Fri, 21 Jun 2019 14:56:32 +0200 Subject: [PATCH] initial_tasks: make it possible to disable ansible Introduce ceph_cm_ansible option in order to ommit 'ansible.cephlab' task, so alternative way of target node provisioning can be selected Signed-off-by: Kyr Shatskyy --- teuthology/run.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/teuthology/run.py b/teuthology/run.py index bd7f49ebe3..8286f7c2fb 100644 --- a/teuthology/run.py +++ b/teuthology/run.py @@ -226,9 +226,13 @@ def get_initial_tasks(lock, config, machine_type): init_tasks.extend([ {'pcp': None}, {'selinux': None}, - {'ansible.cephlab': None}, - {'clock': None} ]) + if config.get('ceph_cm_ansible', True): + init_tasks.append({'ansible.cephlab': None}) + + # clock_sync_task: 'clock' or 'clock.check' + clock_sync_task = config.get('clock_sync_task', 'clock') + init_tasks.append({clock_sync_task: None}) if 'redhat' in config: init_tasks.extend([ -- 2.39.5