Add script to create ring and start server
diff --git a/stack.sh b/stack.sh
index 546cc06..4c93e67 100755
--- a/stack.sh
+++ b/stack.sh
@@ -280,6 +280,9 @@
# Size of the loopback disks
SWIFT_LOOPBACK_DISK_SIZE=${SWIFT_LOOPBACK_DISK_SIZE:-1000000}
+# Default partition power size (bigger is slower)
+SWIFT_PARTITION_POWER_SIZE=${SWIFT_PARTITION_POWER_SIZE:-9}
+
# Keystone
# --------
@@ -664,6 +667,12 @@
generate_swift_configuration container 6011 2
generate_swift_configuration account 6012 2
+ # Install swift helper scripts to remake the rings and start all services.
+ sed -e "s/%SWIFT_PARTITION_POWER_SIZE%/$SWIFT_PARTITION_POWER_SIZE/" $FILES/swift-remakerings | \
+ sudo tee /usr/local/bin/swift-remakerings
+ sudo install -m755 $FILES/swift-startmain /usr/local/bin/
+ sudo chmod +x /usr/local/bin/swift-*
+
unset s swift_hasH
fi