From fa94bd10b74748c87272edbc7d93abc335949e94 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 20 Oct 2014 15:03:26 +0200 Subject: run_remote: allow installing not-yet-stable packages For that purpose you may use '--extra-rpms-file FILE' option where the file contains list of rpms to be installed. The RPMs should be defined like accessible URLs from testing machine. Also, export the overall log file as dtf-run.overview. * run_remote: Add new option --extra-rpms-file. * ansible/fedora.yml: Include conditionally the additional-packages playbook. Generate the dtf-run.overview. * ansible/include/additional-packages.yml: New playbook used to install explicit list of additional packages. * ansible/include/download-results.yml: Fix to download also dtf-run.overview file. --- run_remote | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'run_remote') diff --git a/run_remote b/run_remote index 47aaeb4..39e45dd 100755 --- a/run_remote +++ b/run_remote @@ -8,10 +8,11 @@ opt_workdir=/var/tmp/dbt-results opt_distro=fedora opt_openstack_instance=dropbear opt_distro_ver=20 +opt_extra_rpms= die() { echo >&2 "$@" ; exit 1 ; } -longopts="distro:,distro-version:,workdir:,openstack-instance:" +longopts="distro:,distro-version:,workdir:,openstack-instance:,extra-rpms-file:" ARGS=$(getopt -o "v" -l "$longopts" -n "getopt" -- "$@") \ || exit 1 eval set -- "$ARGS" @@ -38,6 +39,11 @@ while true; do shift 2 ;; + --extra-rpms-file) + opt_extra_rpms="$(readlink -f "$2")" + shift 2 + ;; + --) shift break @@ -66,3 +72,4 @@ ansible-playbook "$run_playbook" \ --extra-vars "os_keypair=${os_keypair}" \ --extra-vars "os_security_group=${os_security_group}" \ --extra-vars "os_network_dev=${os_network_dev}" \ + --extra-vars "${opt_extra_rpms:+dtf_rpm_files_list=$opt_extra_rpms}" -- cgit