]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add a task for easily running chef-solo on all the nodes.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Fri, 18 Nov 2011 00:49:47 +0000 (16:49 -0800)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Fri, 18 Nov 2011 00:49:47 +0000 (16:49 -0800)
teuthology/task/chef.py [new file with mode: 0644]

diff --git a/teuthology/task/chef.py b/teuthology/task/chef.py
new file mode 100644 (file)
index 0000000..510eff7
--- /dev/null
@@ -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,
+            )
+        )