-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathswift-ringconfig.sh
executable file
·70 lines (46 loc) · 1 KB
/
swift-ringconfig.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#! /usr/bin/env bash
# Author: Stephen Tredger, 2013
# Copyright (c) 2013 University of Victoria
# See LICENSE.txt or visit www.geni.net/wp-content/uploads/2009/02/genipublic.pdf
# for the full license
# Create config files for each ring, worker nodes need these
cat > account-server.conf <<EOF
[DEFAULT]
bind_ip = 0.0.0.0
workers = 2
mount_check = true
[pipeline:main]
pipeline = account-server
[app:account-server]
use = egg:swift#account
[account-replicator]
[account-auditor]
[account-reaper]
EOF
cat > container-server.conf <<EOF
[DEFAULT]
bind_ip = 0.0.0.0
workers = 2
mount_check = true
[pipeline:main]
pipeline = container-server
[app:container-server]
use = egg:swift#container
[container-replicator]
[container-updater]
[container-auditor]
[container-sync]
EOF
cat > object-server.conf <<EOF
[DEFAULT]
bind_ip = 0.0.0.0
workers = 2
mount_check = true
[pipeline:main]
pipeline = object-server
[app:object-server]
use = egg:swift#object
[object-replicator]
[object-updater]
[object-auditor]
EOF