diff options
-rwxr-xr-x | boot-instance | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/boot-instance b/boot-instance new file mode 100755 index 0000000..b577546 --- /dev/null +++ b/boot-instance @@ -0,0 +1,4 @@ +#!/bin/bash +instance_name=`</dev/urandom tr -dc 'abcdefghjklmnpqrstuvwxyzawk' | head -c6; echo ""` +echo "booting new instance: $instance_name" +nova boot --flavor m1.small --image trusty-server-cloudimg-arm64 $instance_name --user-data ./cloud-init-userdata |