From c545094895a2f3ec3712aad7b52db5ed60bfeb50 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Thu, 17 Nov 2011 16:49:47 -0800 Subject: [PATCH] Add a task for easily running chef-solo on all the nodes. --- teuthology/task/chef.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 teuthology/task/chef.py diff --git a/teuthology/task/chef.py b/teuthology/task/chef.py new file mode 100644 index 0000000000000..510eff76e79b5 --- /dev/null +++ b/teuthology/task/chef.py @@ -0,0 +1,25 @@ +import logging + +from ..orchestra import run + +log = logging.getLogger(__name__) + +def task(ctx, config): + """ + Run chef-solo on all nodes. + """ + log.info('Running chef-solo...') + + run.wait( + ctx.cluster.run( + args=[ + 'wget', + '-q', + '-O-', + 'https://raw.github.com/NewDreamNetwork/ceph-qa-chef/master/solo/solo-from-scratch', + run.Raw('|'), + 'sh', + ], + wait=False, + ) + ) -- 2.39.5