Migrate Swift ring handling from tripleo-heat-templates to puppet-tripleo
authorChristian Schwede <cschwede@redhat.com>
Fri, 17 Feb 2017 16:31:52 +0000 (16:31 +0000)
committerChristian Schwede <cschwede@redhat.com>
Sun, 9 Apr 2017 17:18:57 +0000 (17:18 +0000)
commitfb28647f7d46bb7f145c25f9adf558d823eb292c
tree9e1d6b433cb384b312f254ba54da7dfc325c0db2
parentc29080168db2ad544c9ae78ed3879660dc57f85c
Migrate Swift ring handling from tripleo-heat-templates to puppet-tripleo

This allows decoupling the Swift ringbuilding logic from the Controller
and ObjectStorage roles. A follow up patch will modify
tripleo-heat-templates and use this modified class.

Actually this downloads the Swift rings even if ring building is
disabled or if there is no need to rebalance. This is required, because
operators can disable ring building, but use the same mechanism to
distribute pre-built rings to the nodes.

If ring building is disabled, these won't be uploaded at the end back to
the undercloud.

Related-Bug: 1665641
Change-Id: Ifd6fa5b398d98e8998630ea0c9a2ce9867ceba2b
(cherry picked from commit 3412150d91dc7fe6e9f168b4ffdbb4d54c39fc55)
manifests/profile/base/swift/ringbuilder.pp
spec/classes/tripleo_profile_base_swift_ringbuilder.rb [new file with mode: 0644]