Skip to content
Snippets Groups Projects
Commit eb80a730 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Swift: add swift_extra_ring_files variable to handle multi-policies deployment"

parents 2ba04ad2 0adbbb26
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,8 @@ syslog_swift_facility: "local0" ...@@ -78,6 +78,8 @@ syslog_swift_facility: "local0"
swift_enable_rolling_upgrade: "yes" swift_enable_rolling_upgrade: "yes"
swift_extra_ring_files: []
#################### ####################
# Keystone # Keystone
#################### ####################
......
...@@ -190,6 +190,7 @@ ...@@ -190,6 +190,7 @@
- "container.ring.gz" - "container.ring.gz"
- "object.builder" - "object.builder"
- "object.ring.gz" - "object.ring.gz"
- "{{ swift_extra_ring_files }}"
- name: Check if policies shall be overwritten - name: Check if policies shall be overwritten
local_action: stat path="{{ node_custom_config }}/swift/policy.json" local_action: stat path="{{ node_custom_config }}/swift/policy.json"
......
...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
- "container.ring.gz" - "container.ring.gz"
- "object.builder" - "object.builder"
- "object.ring.gz" - "object.ring.gz"
- "{{ swift_extra_ring_files }}"
- name: Fail if ring files don't exist - name: Fail if ring files don't exist
run_once: True run_once: True
......
...@@ -215,6 +215,16 @@ Enable Swift in ``/etc/kolla/globals.yml``: ...@@ -215,6 +215,16 @@ Enable Swift in ``/etc/kolla/globals.yml``:
enable_swift : "yes" enable_swift : "yes"
If you are to deploy multiple policies, override the variable
``swift_extra_ring_files`` with the list of your custom ring files, .builder
and .ring.gz all together. This will append them to the list of default rings.
.. code-block:: yaml
swift_extra_ring_files:
- object-1.builder
- object-1.ring.gz
Once the rings are in place, deploying Swift is the same as any other Kolla Once the rings are in place, deploying Swift is the same as any other Kolla
Ansible service: Ansible service:
......
---
features:
- |
Add a new variable to be used by the swift role, ``swift_extra_ring_files``.
It allows to pass additional ring files to be deployed in the context of
a multi-policy setup.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment