forked from matthewoliver/swift-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswift_setup.yml
202 lines (196 loc) · 4.93 KB
/
swift_setup.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
---
# 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: 10
output_directory: /tmp/swift
output_filename: hosts
user: swift
hash_path_suffix: asdfnasdjkfnsdkfjnsd
hash_path_prefix: asldfnslfn234klnslkd
#syslog_host: 10.1.1.1:514
git_repo: 'https://github.com/matthewoliver/swift'
git_tag: sharding_lock
memcache_servers:
- 192.168.9.11:11211
- 192.168.9.12:11211
statsd:
host: 192.168.9.50
port: 8125
# metric_prefix:
default_sample_rate: 1.0
sample_rate_factor: 1.0
# 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.9.105
mountpoint: /mnt/
region: 1
zone: 1
swift_ip: 192.168.122.105
repl_ip: 192.168.123.105
drives:
- name: xvdb
weight: 512
- name: xvdc
weight: 512
- name: xvdd
weight: 512
- name: xvdf
weight: 512
- host: 192.168.9.106
drive: sda
mountpoint: /mnt/
region: 1
zone: 2
swift_ip: 192.168.122.106
repl_ip: 192.168.123.106
drives:
- name: xvdb
weight: 512
- name: xvdc
weight: 512
- name: xvdd
weight: 512
- name: xvdf
weight: 512
- host: 192.168.9.205
drive: sda
mountpoint: /mnt/
region: 2
zone: 1
swift_ip: 192.168.122.205
repl_ip: 192.168.123.205
drives:
- name: xvdb
weight: 512
- name: xvdc
weight: 512
- name: xvdd
weight: 512
- name: xvdf
weight: 512
- host: 192.168.9.206
drive: sda
mountpoint: /mnt/
region: 2
zone: 2
swift_ip: 192.168.122.206
repl_ip: 192.168.123.206
drives:
- name: xvdb
weight: 512
- name: xvdc
weight: 512
- name: xvdd
weight: 512
- name: xvdf
weight: 512
proxy:
authtoken:
active: true
delay_auth_decision: true
auth_version: v2.0
auth_host: 192.168.9.51
auth_port: 35357
auth_protocol: http
auth_uri: http://192.168.9.51:5000/
admin_tenant_name: service
admin_user: swift
admin_password: sw1ftpa55w0rd
reseller_prefix: KEY
hosts:
- host: 192.168.9.11
- host: 192.168.9.12
account:
repl_number: 3
min_part_hours: 1
port: 6002
hosts:
- name: 192.168.9.105/xvdb
- name: 192.168.9.105/xvdc
- name: 192.168.9.105/xvdd
- name: 192.168.9.105/xvdf
- name: 192.168.9.106/xvdb
- name: 192.168.9.106/xvdc
- name: 192.168.9.106/xvdd
- name: 192.168.9.106/xvdf
- name: 192.168.9.205/xvdb
- name: 192.168.9.205/xvdc
- name: 192.168.9.205/xvdd
- name: 192.168.9.205/xvdf
- name: 192.168.9.206/xvdb
- name: 192.168.9.206/xvdc
- name: 192.168.9.206/xvdd
- name: 192.168.9.206/xvdf
container:
repl_number: 3
port: 6001
hosts:
- name: 192.168.9.105/xvdb
- name: 192.168.9.105/xvdc
- name: 192.168.9.105/xvdd
- name: 192.168.9.105/xvdf
- name: 192.168.9.106/xvdb
- name: 192.168.9.106/xvdc
- name: 192.168.9.106/xvdd
- name: 192.168.9.106/xvdf
- name: 192.168.9.205/xvdb
- name: 192.168.9.205/xvdc
- name: 192.168.9.205/xvdd
- name: 192.168.9.205/xvdf
- name: 192.168.9.206/xvdb
- name: 192.168.9.206/xvdc
- name: 192.168.9.206/xvdd
- name: 192.168.9.206/xvdf
storage_policies:
default: gold
port: 6000
policies:
- name: gold
index: 0
type: replication
repl_number: 3
min_part_hours: 1
hosts:
- name: 192.168.9.105/xvdb
- name: 192.168.9.105/xvdc
- name: 192.168.9.105/xvdd
- name: 192.168.9.105/xvdf
- name: 192.168.9.106/xvdb
- name: 192.168.9.106/xvdc
- name: 192.168.9.106/xvdd
- name: 192.168.9.106/xvdf
- name: 192.168.9.205/xvdb
- name: 192.168.9.205/xvdc
- name: 192.168.9.205/xvdd
- name: 192.168.9.205/xvdf
- name: 192.168.9.206/xvdb
- name: 192.168.9.206/xvdc
- name: 192.168.9.206/xvdd
- name: 192.168.9.206/xvdf
- name: silver
index: 1
type: replication
repl_number: 2
hosts:
- name: 192.168.9.105/xvdb
- name: 192.168.9.105/xvdc
- name: 192.168.9.105/xvdd
- name: 192.168.9.105/xvdf
- name: 192.168.9.106/xvdb
- name: 192.168.9.106/xvdc
- name: 192.168.9.106/xvdd
- name: 192.168.9.106/xvdf