105 Commits

Author SHA1 Message Date
Dan Bode
d74a7cebaa Calls to scope.lookupvar replaced with has_variable?
The previous calls to sope.lookupvar were very
dependeny on the version of puppet used.

These calls have been replaced with the more
reliable and concise has_variable? method.
2012-01-23 11:43:55 -08:00
Dan Bode
917426380e Implement ringbuilder
This commit adds a class, defined resources and
native types that can be used together to manage
the creation, configuration, and rebalancing of
rings.

Creates the following native types:

  ring_account_device
  ring_container_device
  ring_object_device

The implementation of these types is provided
by swift-ring-builder and most of the functionality
is provided by the parent provider (SwiftRingBuilder)

Each of the providers is hard-coded to find the
relevent ring database in /etc/swift. This directory
location can currently not be configured.

Each provider implements self.instances so the
current state can of the ring can be queried from
puppet.

These providers do not handle either the creation
or the rebalancing of the rings, they are intended
to be used in combination with defined resource types
that perform that functionality:

  swift::ringbuilder::create
  swift::ringbuilder::rebalance

The swift::ringbuilder class is also created as
a part of this commit. This class does the following:

  - creates object, account, and container rings
(it uses the same parameters to create these rings)
  - creates the rebalance defines
  - sets up the following relationships:
    for each ring type, create should be applied before
    the native types which should refresh the rebalance
2012-01-23 11:42:42 -08:00
Dan Bode
50eaa8e66d refactor to markdown
This commit refactors the README to use proper
markdown so that it is easier to read on github.
2012-01-19 19:11:13 -08:00
Dan Bode
70282576b2 Rename README to README.markdown 2012-01-19 19:03:09 -08:00
Dan Bode
47d49e7780 Initial commit.
This initial commit only targets a single node
swift install on Natty based on 1.4.6
2012-01-19 18:58:37 -08:00