summaryrefslogtreecommitdiffstats
path: root/src/ceph-volume/ceph_volume/tests/functional/scripts/generate_ssh_config.sh
blob: 43e64a65477f93af9002715aeeb21d9f502905dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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