2011-11-18 00:49:47 +00:00
|
|
|
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',
|
2013-04-30 00:11:27 +00:00
|
|
|
# '-q',
|
2011-11-18 00:49:47 +00:00
|
|
|
'-O-',
|
2012-03-02 18:55:19 +00:00
|
|
|
# 'https://raw.github.com/ceph/ceph-qa-chef/master/solo/solo-from-scratch',
|
2012-05-05 16:30:41 +00:00
|
|
|
'http://ceph.com/git/?p=ceph-qa-chef.git;a=blob_plain;f=solo/solo-from-scratch;hb=HEAD',
|
2011-11-18 00:49:47 +00:00
|
|
|
run.Raw('|'),
|
|
|
|
'sh',
|
2013-04-30 20:04:28 +00:00
|
|
|
'-x',
|
2011-11-18 00:49:47 +00:00
|
|
|
],
|
|
|
|
wait=False,
|
|
|
|
)
|
|
|
|
)
|