diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2015-03-02 12:27:16 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2015-03-04 15:34:40 +0000 |
commit | b64ca58c063cee23a586347705cf4e609c0b4794 (patch) | |
tree | fb0f1f0b6a0eea47f9182a334ef9059c435ed75a /openstack | |
parent | 3b5713efa53f75ebb545a59c4f6c87caf907304f (diff) | |
download | definitions-b64ca58c063cee23a586347705cf4e609c0b4794.tar.gz |
Add account ring
Diffstat (limited to 'openstack')
-rw-r--r-- | openstack/usr/share/openstack/swift-controller.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openstack/usr/share/openstack/swift-controller.yml b/openstack/usr/share/openstack/swift-controller.yml index b3f5b03b..14f0dbb1 100644 --- a/openstack/usr/share/openstack/swift-controller.yml +++ b/openstack/usr/share/openstack/swift-controller.yml @@ -29,3 +29,15 @@ adminurl={{ SWIFT_ADMIN_URL }} region='RegionOne' token={{ KEYSTONE_TEMPORARY_ADMIN_TOKEN }} + + - name: Create account ring + shell: swift-ring-builder account.builder create {{ SWIFT_PART_POWER }} + {{ SWIFT_REPLICAS }} {{ SWIFT_MIN_PART_HOURS }} + + - name: Add each storage node to the ring + shell: swift-ring-builder account.builder + add r1z1-{{ item.ip }}:6002/{{ item.device}} {{ item.weight }} + with_items: {{ SWIFT_STORAGE_DEVICES }} + + - name: Rebalance the ring + shell: swift-ring-builder account.builder rebalance |