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