{'internal.check_lock': None},
{'internal.connect': None},
{'internal.check_conflict': None},
- {'internal.check_ceph_data': None},
- {'internal.vm_setup': None},
])
+ if not ctx.config.get('use_existing_cluster', False):
+ init_tasks.extend([
+ {'internal.check_ceph_data': None},
+ {'internal.vm_setup': None},
+ ])
if 'kernel' in ctx.config:
+ sha1 = ctx.config['kernel'].get('sha1')
distro = get_distro(ctx)
- if distro == 'ubuntu':
+ if (distro == 'ubuntu') or (sha1 == 'distro'):
init_tasks.append({'kernel': ctx.config['kernel']})
init_tasks.extend([
{'internal.base': None},
)
def download_deb(ctx, config):
+ """
+ Download a Debian kernel and copy the assocated linux image.
+
+ :param ctx: Context
+ :param config: Configuration
+ """
procs = {}
+ #Don't need to download distro kernels
for role, src in config.iteritems():
(role_remote,) = ctx.cluster.only(role).remotes.keys()
+ if src.find('distro') >= 0:
+ log.info('Installing newest kernel distro');
+ return
+
+
if src.find('/') >= 0:
# local deb
log.info('Copying kernel deb {path} to {role}...'.format(path=src,