Skip to content

Commit 0290f15

Browse files
author
Matthew Fisher
committed
fix(contrib): use absolute path to user-data
if you run the rackspace provision script outside of contrib/rackspace, it will fail because it will look for a user-data file relative to your current working directory. Using $CONTRIB_DIR to determine where the user data is located fixes this.
1 parent 64ffeac commit 0290f15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

contrib/rackspace/provision-rackspace-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ i=1 ; while [[ $i -le $DEIS_NUM_INSTANCES ]] ; do \
5050
echo_yellow "Provisioning deis-$i..."
5151
# TODO: update to CoreOS 494.1.0 when it is available in beta channel at Rackspace
5252
# This image is CoreOS 494.0.0 in their alpha channel
53-
supernova $ENV boot --image 1c423602-ea76-4263-b56b-0a2fa3e8c663 --flavor $FLAVOR --key-name $1 --user-data ../coreos/user-data --no-service-net --nic net-id=$NETWORK_ID --config-drive true deis-$i ; \
53+
supernova $ENV boot --image 1c423602-ea76-4263-b56b-0a2fa3e8c663 --flavor $FLAVOR --key-name $1 --user-data $CONTRIB_DIR/coreos/user-data --no-service-net --nic net-id=$NETWORK_ID --config-drive true deis-$i ; \
5454
((i = i + 1)) ; \
5555
done
5656

0 commit comments

Comments
 (0)