More fixes (this is now working).
This commit is contained in:
parent
a2118984c0
commit
d5651bb5c6
3 changed files with 13 additions and 4 deletions
|
@ -9,6 +9,7 @@ pipeline = healthcheck cache tempauth proxy-server
|
||||||
[app:proxy-server]
|
[app:proxy-server]
|
||||||
use = egg:swift#proxy
|
use = egg:swift#proxy
|
||||||
allow_account_management = true
|
allow_account_management = true
|
||||||
|
account_autocreate = true
|
||||||
|
|
||||||
[filter:tempauth]
|
[filter:tempauth]
|
||||||
use = egg:swift#tempauth
|
use = egg:swift#tempauth
|
||||||
|
|
2
files/swift-startmain
Normal file → Executable file
2
files/swift-startmain
Normal file → Executable file
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
swift-init all start
|
swift-init all restart
|
||||||
|
|
14
stack.sh
14
stack.sh
|
@ -641,7 +641,7 @@ EOF
|
||||||
sed -e "s/%SWIFT_LOCATION%/$SWIFT_LOCATION/" $FILES/swift-rsyncd.conf | sudo tee /etc/rsyncd.conf
|
sed -e "s/%SWIFT_LOCATION%/$SWIFT_LOCATION/" $FILES/swift-rsyncd.conf | sudo tee /etc/rsyncd.conf
|
||||||
|
|
||||||
# Copy proxy-server configuration
|
# Copy proxy-server configuration
|
||||||
cp $FILES/swift-proxy-server.conf /etc/swift/
|
cp $FILES/swift-proxy-server.conf /etc/swift/proxy-server.conf
|
||||||
|
|
||||||
# Generate swift.conf, we need to have the swift-hash being random
|
# Generate swift.conf, we need to have the swift-hash being random
|
||||||
# and unique.
|
# and unique.
|
||||||
|
@ -656,8 +656,8 @@ EOF
|
||||||
local bind_port=$2
|
local bind_port=$2
|
||||||
local log_facility=$3
|
local log_facility=$3
|
||||||
for node_number in {1..4};do
|
for node_number in {1..4};do
|
||||||
node_path=${SWIFT_LOCATION}/${node_number}/node
|
node_path=${SWIFT_LOCATION}/${node_number}
|
||||||
sed -e "s/%NODE_PATH%/${node_path}/;s/%BIND_PORT%/${bind_port}/;s/%LOG_FACILITY%/${log_facility}/" \
|
sed -e "s,%NODE_PATH%,${node_path},;s,%BIND_PORT%,${bind_port},;s,%LOG_FACILITY%,${log_facility}," \
|
||||||
$FILES/swift-${server_type}-server.conf > /etc/swift/${server_type}-server/${node_number}.conf
|
$FILES/swift-${server_type}-server.conf > /etc/swift/${server_type}-server/${node_number}.conf
|
||||||
bind_port=$(( ${bind_port} + 10 ))
|
bind_port=$(( ${bind_port} + 10 ))
|
||||||
log_facility=$(( ${log_facility} + 1 ))
|
log_facility=$(( ${log_facility} + 1 ))
|
||||||
|
@ -673,6 +673,14 @@ EOF
|
||||||
sudo install -m755 $FILES/swift-startmain /usr/local/bin/
|
sudo install -m755 $FILES/swift-startmain /usr/local/bin/
|
||||||
sudo chmod +x /usr/local/bin/swift-*
|
sudo chmod +x /usr/local/bin/swift-*
|
||||||
|
|
||||||
|
# Create ring
|
||||||
|
/usr/local/bin/swift-remakerings
|
||||||
|
|
||||||
|
# Start everything
|
||||||
|
/usr/local/bin/swift-startmain || :
|
||||||
|
|
||||||
|
# This should work (tempauth)
|
||||||
|
# swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing stat
|
||||||
unset s swift_hasH
|
unset s swift_hasH
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue