]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
teuthology: add an extra_packages flag to install
authorJoe Buck <jbbuck@gmail.com>
Wed, 20 Feb 2013 19:58:45 +0000 (11:58 -0800)
committerJoe Buck <jbbuck@gmail.com>
Tue, 26 Feb 2013 18:15:45 +0000 (10:15 -0800)
Some tests require additional packages
(e.g., java bindings, hadoop bindings).
Extend the install task to allow for those
packages to be specified in the yaml files.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Sam Lang <sam.lang@inktank.com>
teuthology/task/install.py

index f70bfa17cab24f6b3cddf859af3122de2751c71e..48ed4652a3951c412a60832a65a52cd476a17e7d 100644 (file)
@@ -179,6 +179,12 @@ def install(ctx, config):
         'libcephfs1',
         'libcephfs1-dbg',
         ]
+
+    # pull any additional packages out of config
+    extra_debs = config.get('extra_packages')
+    log.info('extra packages: {packages}'.format(packages=extra_debs))
+    debs = debs + extra_debs
+
     # install lib deps (so we explicitly specify version), but do not
     # uninstall them, as other packages depend on them (e.g., kvm)
     debs_install = debs + [
@@ -239,6 +245,7 @@ def task(ctx, config):
                 tag=config.get('tag'),
                 sha1=config.get('sha1'),
                 flavor=flavor,
+                extra_packages=config.get('extra_packages'),
                 )),
         ):
         yield