summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2020-04-22 11:56:04 -0700
committerTim Burke <tim.burke@gmail.com>2020-04-23 13:46:16 -0700
commit9581254e6617f1bb51c7de0599107999622fbe82 (patch)
tree01278e0682e701f32a9fde62a62ace61a3660de5 /roles
parentc7fe823c0aa6c2e55310ba20093d5a4ab686758f (diff)
downloadswift-9581254e6617f1bb51c7de0599107999622fbe82.tar.gz
swift-dsvm: Enable more middlewares
Change-Id: I3cbbcd2ea9ced0923bee4a6b0783e4cf5e82e95b
Diffstat (limited to 'roles')
-rw-r--r--roles/dsvm-additional-middlewares/tasks/main.yaml54
1 files changed, 54 insertions, 0 deletions
diff --git a/roles/dsvm-additional-middlewares/tasks/main.yaml b/roles/dsvm-additional-middlewares/tasks/main.yaml
new file mode 100644
index 000000000..f149e519f
--- /dev/null
+++ b/roles/dsvm-additional-middlewares/tasks/main.yaml
@@ -0,0 +1,54 @@
+- name: Add more middlewares to pipeline
+ replace:
+ path: "/etc/swift/proxy-server.conf"
+ regexp: "cache listing_formats"
+ replace: "cache domain_remap etag-quoter listing_formats"
+ 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: 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