-
Notifications
You must be signed in to change notification settings - Fork 4
/
swift_setup_02.yml
214 lines (208 loc) · 5.08 KB
/
swift_setup_02.yml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
---
# This swift setup file, is used as a simple way of managing your swift
# ring configuration. The swift_inventory binary will generate the ansible
# iventory file for you based of this file. Giving you one place to manage your
# cluster.
#
# NOTE: The swift ansible configuration has other variables that can be tweeked,
# see group_vars/ and roles/*/vars/ for other areas to tweek.
local:
ansible_connection=local
# Swift settings are global through out the cluster.
swift:
part_power: 8
output_directory: /tmp/swift
output_filename: hosts02
rings_dir: rings02
user: swift
hash_path_suffix: changeme
hash_path_prefix: changeme
syslog_host: 10.1.1.1:514
#git_tag: server_per_port
git_post_checkout: git fetch https://review.openstack.org/openstack/swift refs/changes/89/184189/18 && git checkout FETCH_HEAD
memcache_servers:
- 192.168.10.3:11211
- 192.168.10.4:11211
# Global hosts
# Hosts can be defined in the sections below or here, the advantage of
# defining them here is that they can be reused in multiple sections below.
#
# When need to reference a global host use the form:
# - name: <host>/<drive>
hosts:
- host: 192.168.10.13
mountpoint: /mnt/
region: 1
zone: 1
drives:
- name: sda
wieght: 100
- name: sdb
region: 1
zone: 1
weight: 100
- name: sdc
wieght: 100
- name: sdd
wieght: 100
- host: 192.168.10.14
drive: sda
mountpoint: /mnt/
region: 1
zone: 2
drives:
- name: sda
weight: 100
- name: sdb
weight: 100
- name: sdc
weight: 100
- name: sdd
weight: 100
- host: 192.168.10.23
drive: sda
mountpoint: /mnt/
region: 2
zone: 1
drives:
- name: sda
weight: 100
- name: sdb
weight: 100
- name: sdc
weight: 100
- name: sdd
weight: 100
- host: 192.168.10.24
drive: sda
mountpoint: /mnt/
region: 2
zone: 2
drives:
- name: sda
weight: 100
- name: sdb
weight: 100
- name: sdc
weight: 100
- name: sdd
weight: 100
proxy:
authtoken:
active: false
delay_auth_decision: true
auth_version: v2.0
auth_host: keystone.local.lan
auth_port: 35357
auth_protocol: https
auth_uri: http://keystonehost:5000/
admin_tenant_name: service
admin_user: swift
admin_password: ADMIN
hosts:
- host: 119.9.40.108
- host: 119.9.43.33
account:
repl_number: 3
min_part_hours: 1
port: 6010
hosts:
- name: 192.168.10.13/sda
- name: 192.168.10.13/sdb
- name: 192.168.10.13/sdc
- name: 192.168.10.13/sdd
- name: 192.168.10.14/sda
- name: 192.168.10.14/sdb
- name: 192.168.10.14/sdc
- name: 192.168.10.14/sdd
- name: 192.168.10.23/sda
- name: 192.168.10.23/sdb
- name: 192.168.10.23/sdc
- name: 192.168.10.23/sdd
- name: 192.168.10.24/sda
- name: 192.168.10.24/sdb
- name: 192.168.10.24/sdc
- name: 192.168.10.24/sdd
container:
repl_number: 3
port: 6011
hosts:
- name: 192.168.10.13/sda
- name: 192.168.10.13/sdb
- name: 192.168.10.13/sdc
- name: 192.168.10.13/sdd
- name: 192.168.10.14/sda
- name: 192.168.10.14/sdb
- name: 192.168.10.14/sdc
- name: 192.168.10.14/sdd
- name: 192.168.10.23/sda
- name: 192.168.10.23/sdb
- name: 192.168.10.23/sdc
- name: 192.168.10.23/sdd
- name: 192.168.10.24/sda
- name: 192.168.10.24/sdb
- name: 192.168.10.24/sdc
- name: 192.168.10.24/sdd
storage_policies:
default: gold
port: 6000
policies:
- name: gold
index: 0
type: replication
repl_number: 3
min_part_hours: 1
hosts:
- name: 192.168.10.13/sda
port: 6001
- name: 192.168.10.13/sdb
port: 6002
- name: 192.168.10.13/sdc
port: 6003
- name: 192.168.10.13/sdd
port: 6004
- name: 192.168.10.14/sda
port: 6001
- name: 192.168.10.14/sdb
port: 6002
- name: 192.168.10.14/sdc
port: 6003
- name: 192.168.10.14/sdd
port: 6004
- name: 192.168.10.23/sda
port: 6001
- name: 192.168.10.23/sdb
port: 6002
- name: 192.168.10.23/sdc
port: 6003
- name: 192.168.10.23/sdd
port: 6004
- name: 192.168.10.24/sda
port: 6001
- name: 192.168.10.24/sdb
port: 6002
- name: 192.168.10.24/sdc
port: 6003
- name: 192.168.10.24/sdd
port: 6004
- name: silver
index: 1
type: replication
repl_number: 2
hosts:
- name: 192.168.10.13/sda
port: 6001
- name: 192.168.10.13/sdb
port: 6002
- name: 192.168.10.13/sdc
port: 6003
- name: 192.168.10.13/sdd
port: 6004
- name: 192.168.10.14/sda
port: 6001
- name: 192.168.10.14/sdb
port: 6002
- name: 192.168.10.14/sdc
port: 6003
- name: 192.168.10.14/sdd
port: 6004