blob: 66e186a3f2958b88ec6a77f98a834298b1549ac0 (
plain)
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
|
- name: Add domain_remap and etag-quoter to pipeline
replace:
path: "/etc/swift/proxy-server.conf"
regexp: "cache listing_formats"
replace: "cache domain_remap etag-quoter listing_formats"
become: true
- name: Add s3api and s3token to pipeline
replace:
path: "/etc/swift/proxy-server.conf"
regexp: "authtoken keystoneauth tempauth"
replace: "authtoken s3api s3token keystoneauth tempauth"
become: true
- name: Set domain_remap domain
ini_file:
path: /etc/swift/proxy-server.conf
section: filter:domain_remap
option: storage_domain
value: example.com
become: true
- name: Set storage_domain in test.conf
ini_file:
path: /etc/swift/test.conf
section: func_test
option: storage_domain
value: example.com
become: true
- name: Enable object versioning
ini_file:
path: /etc/swift/proxy-server.conf
section: filter:versioned_writes
option: allow_object_versioning
value: true
become: true
- name: Configure s3api force_swift_request_proxy_log
ini_file:
path: /etc/swift/proxy-server.conf
section: filter:s3api
option: force_swift_request_proxy_log
value: true
become: true
- name: Configure s3token auth_uri
ini_file:
path: /etc/swift/proxy-server.conf
section: filter:s3token
option: auth_uri
value: http://localhost/identity/v3
become: true
- name: Configure s3token delay_auth_decision
ini_file:
path: /etc/swift/proxy-server.conf
section: filter:s3token
option: delay_auth_decision
value: true
become: true
- name: Copy ring for Policy-1
copy:
remote_src: true
src: /etc/swift/object.ring.gz
dest: /etc/swift/object-1.ring.gz
become: true
- name: Add Policy-1 to swift.conf
ini_file:
path: /etc/swift/swift.conf
section: storage-policy:1
option: name
value: Policy-1
become: true
- name: Restart service to pick up config changes
command: systemctl restart devstack@s-{{ item }}.service
become: true
with_items:
- proxy
- account
- container
- object
|