Matthew Oliver 1f45a2736a Fix os_swift_sync role's set_weight
The swift_rings.py file that updates the swift ring files are
failing to update the weight in a builder file. This is caused
by the weight passed into the swift-ring-builder CLI needing
to be a string.

This patch converts the weight to a string when passing it to
swift-ring-builder.

Closes-Bug: #1532204
Change-Id: Iceb3f19eb226fdcfd373fa73d8a5d41b41a239af
2016-01-08 14:18:51 +00:00
..
2015-10-15 17:56:05 +00:00
2015-08-07 08:45:18 +00:00
2015-10-15 17:56:05 +00:00
2015-08-07 08:45:18 +00:00
2015-08-07 08:45:18 +00:00

OpenStack swift key/ring sync

tags

openstack, swift, cloud, ansible

category

*nix

Role to synchronise keys and the ring for swift hosts

This role will synchronise the following:
  • ring
  • ssh keys
- name: Sync swift rings and keys
  hosts: swift_all:swift_remote_all
  user: root
  roles:
    - { role: "os_swift_sync", tags: [ "os-swift-sync" ] }