blob: 44cf3030eea305c1edfb16bfeaf0696ca3a86b07 [file] [log] [blame]
James E. Blair92e81992011-10-11 09:26:29 -05001#!/usr/bin/env bash
2# Build an OpenStack install on a bare metal machine.
3set +x
4
5# Source params
6source ./stackrc
7
8# Param string to pass to stack.sh. Like "EC2_DMZ_HOST=192.168.1.1 MYSQL_USER=nova"
9STACKSH_PARAMS=${STACKSH_PARAMS:-}
10
11# Option to use the version of devstack on which we are currently working
12USE_CURRENT_DEVSTACK=${USE_CURRENT_DEVSTACK:-1}
13
14# Configure the runner
15RUN_SH=`mktemp`
16cat > $RUN_SH <<EOF
17#!/usr/bin/env bash
18# Install and run stack.sh
19cd devstack
20$STACKSH_PARAMS ./stack.sh
21EOF
22
23# Make the run.sh executable
24chmod 755 $RUN_SH
25
26scp -r . root@$CONTAINER_IP:devstack
27scp $RUN_SH root@$CONTAINER_IP:$RUN_SH
28ssh root@$CONTAINER_IP $RUN_SH