summaryrefslogtreecommitdiffstats
path: root/run_remote
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-10-20 15:03:26 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-10-20 15:30:45 +0200
commitfa94bd10b74748c87272edbc7d93abc335949e94 (patch)
treefe4a6649a14314e806725b4d0079e5279d014bf8 /run_remote
parent42ab13ada931882e9aab25085aed98bb76f970e6 (diff)
downloadpostgresql-setup-tests-fa94bd10b74748c87272edbc7d93abc335949e94.tar.gz
postgresql-setup-tests-fa94bd10b74748c87272edbc7d93abc335949e94.tar.xz
postgresql-setup-tests-fa94bd10b74748c87272edbc7d93abc335949e94.zip
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.
Diffstat (limited to 'run_remote')
-rwxr-xr-xrun_remote9
1 files changed, 8 insertions, 1 deletions
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}"