summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/scripts/distributed-node-create.sh
blob: 02077b9baec0d561af59c8353d305a182c53ac15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e

# create and activate virtual env
virtualenv env
source env/bin/activate

# create SSH key pair of 4096 bits to use it for instances at Rackspace
ssh-keygen -f ${WORKSPACE}/key -t rsa -b 4096

# Install pyrax dependency
pip install pyrax
/opt/qa/distributed-tests/rackspace-server-manager.py create -n ${MACHINES_COUNT}

#create ansible.cfg to set the private SSH key file path
echo -e "[defaults]\nprivate_key_file = key" > ansible.cfg