diff options
author | dkhandel <dkhandel@localhost.localdomain> | 2018-05-21 16:17:41 +0530 |
---|---|---|
committer | dkhandel <dkhandel@localhost.localdomain> | 2018-05-21 16:42:06 +0530 |
commit | 18a5c60c88fbff70a99304b9a690227ab13fd956 (patch) | |
tree | 3e842853c86c0a361eb785816e441e004dc7b1d8 /build-gluster-org/scripts | |
parent | 0c78b5732f35b319597ea2b9518f94177a48b4ff (diff) |
Add shell script which includes:
- Create and activate virtual environment
- Install pyrax dependency
- Run python script to create instances on Rackspace
Change-Id: I1523c5f0b1cb154c997630152b9d3757af8bd4b3
Diffstat (limited to 'build-gluster-org/scripts')
-rw-r--r-- | build-gluster-org/scripts/distributed-node-create.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/build-gluster-org/scripts/distributed-node-create.sh b/build-gluster-org/scripts/distributed-node-create.sh new file mode 100644 index 0000000..7203d53 --- /dev/null +++ b/build-gluster-org/scripts/distributed-node-create.sh @@ -0,0 +1,13 @@ +#!/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} |