From: Alfredo Deza Date: Fri, 4 Nov 2016 17:58:07 +0000 (-0400) Subject: tests: add a helper script to generate vagrant ssh configs X-Git-Tag: v2.0~11^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=74f9f2bff93bb44add67ab32cebcf7f85503f09d;p=ceph-ansible.git tests: add a helper script to generate vagrant ssh configs Signed-off-by: Alfredo Deza Resolves: pytest#harness --- diff --git a/tests/scripts/generate_ssh_config.sh b/tests/scripts/generate_ssh_config.sh new file mode 100644 index 000000000..43e64a654 --- /dev/null +++ b/tests/scripts/generate_ssh_config.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# Generate a custom ssh config from Vagrant so that it can then be used by +# ansible.cfg + +path=$1 + +if [ $# -eq 0 ] + then + echo "A path to the scenario is required as an argument and it wasn't provided" + exit 1 +fi + +cd "$path" +vagrant ssh-config > vagrant_ssh_config