forked from matthewoliver/swift-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswift_setup.yml.example
172 lines (166 loc) · 4.17 KB
/
swift_setup.yml.example
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
---
# 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: .
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/openstack/swift'
#git_tag: sharding_lock
memcache_servers:
- 192.168.9.10: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.100
mountpoint: /mnt/
region: 1
zone: 1
swift_ip: 192.168.9.100
repl_ip: 192.168.9.100
drives:
- name: sdb1
weight: 512
- name: sdc1
weight: 512
- name: sdd1
weight: 512
- name: sde1
weight: 512
- host: 192.168.9.101
drive: sda
mountpoint: /mnt/
region: 1
zone: 2
swift_ip: 192.168.9.101
repl_ip: 192.168.9.101
drives:
- name: sdb1
weight: 512
- name: sdc1
weight: 512
- name: sdd1
weight: 512
- name: sde1
weight: 512
- host: 192.168.9.102
drive: sda
mountpoint: /mnt/
region: 2
zone: 1
swift_ip: 192.168.9.102
repl_ip: 192.168.9.102
drives:
- name: sdb1
weight: 512
- name: sdc1
weight: 512
- name: sdd1
weight: 512
- name: sde1
weight: 512
proxy:
authtoken:
active: false
delay_auth_decision: true
auth_version: v2.0
auth_host: 192.168.9.60
auth_port: 35357
auth_protocol: http
auth_uri: http://192.168.9.60:5000/
admin_tenant_name: service
admin_user: swift
admin_password: sw1ftpa55w0rd
reseller_prefix: KEY
hosts:
- host: 192.168.9.10
account:
repl_number: 3
min_part_hours: 1
port: 6002
hosts:
- name: 192.168.9.100/sdb1
- name: 192.168.9.100/sdc1
- name: 192.168.9.100/sdd1
- name: 192.168.9.100/sde1
- name: 192.168.9.101/sdb1
- name: 192.168.9.101/sdc1
- name: 192.168.9.101/sdd1
- name: 192.168.9.101/sde1
- name: 192.168.9.102/sdb1
- name: 192.168.9.102/sdc1
- name: 192.168.9.102/sdd1
- name: 192.168.9.102/sde1
container:
repl_number: 3
port: 6001
hosts:
- name: 192.168.9.100/sdb1
- name: 192.168.9.100/sdc1
- name: 192.168.9.100/sdd1
- name: 192.168.9.100/sde1
- name: 192.168.9.101/sdb1
- name: 192.168.9.101/sdc1
- name: 192.168.9.101/sdd1
- name: 192.168.9.101/sde1
- name: 192.168.9.102/sdb1
- name: 192.168.9.102/sdc1
- name: 192.168.9.102/sdd1
- name: 192.168.9.102/sde1
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.100/sdb1
- name: 192.168.9.100/sdc1
- name: 192.168.9.100/sdd1
- name: 192.168.9.100/sde1
- name: 192.168.9.101/sdb1
- name: 192.168.9.101/sdc1
- name: 192.168.9.101/sdd1
- name: 192.168.9.101/sde1
- name: 192.168.9.102/sdb1
- name: 192.168.9.102/sdc1
- name: 192.168.9.102/sdd1
- name: 192.168.9.102/sde1
- name: silver
index: 1
type: replication
repl_number: 2
hosts:
- name: 192.168.9.100/sdb1
- name: 192.168.9.100/sdc1
- name: 192.168.9.100/sdd1
- name: 192.168.9.100/sde1
- name: 192.168.9.101/sdb1
- name: 192.168.9.101/sdc1
- name: 192.168.9.101/sdd1
- name: 192.168.9.101/sde1