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',
|
|
|
|
'-q',
|
|
|
|
'-O-',
|
2012-01-16 06:48:33 +00:00
|
|
|
# 'https://raw.github.com/NewDreamNetwork/ceph-qa-chef/master/solo/solo-from-scratch',
|
|
|
|
'http://ceph.newdream.net/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',
|
|
|
|
],
|
|
|
|
wait=False,
|
|
|
|
)
|
|
|
|
)
|