31 Commits

Author SHA1 Message Date
Dan Bode
cf78b8343e Merge pull request #16 from fcharlier/swift_on_debian
Some modifications to install swift correctly on Debian
2012-04-11 20:05:54 -07:00
Dan Bode
1841187164 Replace ppa code
Use ppas from keystone
2012-04-10 21:35:15 -07:00
François Charlier
abc89b899a change port 6010 to 6040 due to a conflict in vagrant 2012-03-29 19:41:18 +02:00
Dan Bode
12275e41ab Add swift trunk ppa
So that I can start testing trunk
2012-03-22 23:06:22 -07:00
Dan Bode
a11c1af726 Update memcache bind address to localhost
So that it can be accessed by the swift proxy
from this address.

Previously, it was binding to eth0 and swift proxy
was trying to access it via localhost.
2012-03-14 11:43:44 -07:00
Dan
cf34ab0522 Add ring syncing to the multi node example
This commit adds an example of how to sync rings between
nodes.

The ringbuilder role exports resources representing the ring
databases that need to be synced.

The storage node can then just collect these resources
2012-03-14 05:47:55 +00:00
Dan Bode
b05fe0bb0b update ip address to use eth0
This commit updates the ip address from eth1 to
eth0.

This is done for testing in ec2 where there is no
defined eth1.
2012-03-12 21:15:33 -07:00
Dan Bode
c416f20986 update mispellings of local_net_ip 2012-03-12 21:14:01 -07:00
Dan Bode
6a8318535a Add local net ip to swift proxy for multi
This commit adds the now required parameter local_net_ip
to the declarations of swift proxy.
2012-03-12 20:07:25 -07:00
Dan Bode
a9cafd8dcd Supply missing required param to all in one example
This commit adds the parameter proxy_local_net_ip to
the swift::proxy class for the all in one example.

This parameter had been changed to be required in a previous commit,
but the example had not been updated.
2012-03-11 23:29:43 -07:00
Dan Bode
5083e19bc4 Decouple storage server types from each other
Previously, all of the storage server types
(account, container, proxy) were always
configured to be installed on the same node.

It often makes sense to only have the account and
container together, and to put the object server on
a different node. (or its possible that other
configurations make sense)

This commit refactors the swift module so that
each of the types of nodes can be built
independently of each other.
2012-03-02 20:01:49 -08:00
Dan Bode
e9dfe0f8e5 Improve documentation
Improves README and inline docs, comments
2012-02-14 15:05:35 -08:00
Dan Bode
b7a8f0cdee Improve inline comments
Improve inline comments so that the example
manifests can serve as a documented example.
2012-02-14 14:19:52 -08:00
Dan Bode
380ab56cc0 Add ringbuilder role class to proxy role
Cleaned up code so that ringbuilder is a role.

Add this role to the proxy node declaration.
2012-02-14 14:19:16 -08:00
Dan Bode
6f5cf724e8 Update ring exported resources
update the ports to be 6000-6002 and ensure that
the zone parameter is set from $swift_zone.
2012-02-14 14:17:43 -08:00
Dan Bode
eded81575c Remove swift::storage::device declaration
This commit removes the declaration of
swift::storage::device since the servers are now
built from the swift::storage class declaration.
2012-02-14 14:16:37 -08:00
Dan Bode
31dc69b985 remove puppetmaster node declaration
Removes the puppetmaster node declaration so that
this manifest can be imported from the openstack's
manifests/site.pp (so that the openstack project
and the swift project can use the same node
declarations when swift is added as a submodule to
the openstack project)
2012-02-14 14:14:23 -08:00
Dan Bode
3689cf7a20 Use node declarations
Updates the code to use node declarations instead
of a case statement. This is done to conform to
the rest of the openstack manifest and may be
reverted at a later date.
2012-02-14 14:13:35 -08:00
Dan Bode
edd9a6b7d0 Clean up swift ringbuilder role
This commit cleans up the multi-node example code
for the ringbuilder role.

- adds resource collection code to collect exported
ring balancing resources.
- fixes a typo in the name.
2012-02-13 17:02:21 -08:00
Dan Bode
cc163db0bb Add ringbuilder class to swift proxy role
For now, I am assuing that the swift proxy role
also includes the ring building role.

This commit adds a declaration of the
swift::ringbuilder class to the swift_proxy_role
class.
2012-02-13 17:00:26 -08:00
Dan Bode
d062985219 Add proxy to apt class
This commit adds a proxy to the apt class in the
pre config manifest.

This is because I am using a squid proxy to speed
up testing in my environment.

I need to expose this as a config option so that
the hardcoded address of my app proxy is not
required for anyone to use this.
2012-02-13 16:58:45 -08:00
Dan Bode
310ca91b59 Removed swift::storage::device::* defines
Previously, I had created a define intended to
wrap the creation of the storage device endpoints
with their associated ring configs.

I wound up decided against this for two reasons:
  - Abtstracting storage endpoints together with
the ring configurations can be confusing b/c it
conflates actions associated with the storage role
with actions associated with the ringbuilding role.
  - Abstracting the ring building hides side effects
of this manifest from the user (that it will effect
the ringbuilder role)

This pull request does the following:

- removes the swift::storage::device::* defines

- update the following code to use
swift::storage::device in combination with
ring_*_device
 -- examples/multi
 -- swift::storage::node
2012-02-13 16:50:41 -08:00
Dan Bode
3cd7bdf276 Add role_puppetmaster class
Add a class that can be used to assign a
puppetmaster role.

This code is required b/c storedconfigs is required
for the multi-node swift scenario.
2012-02-13 15:43:43 -08:00
Dan Bode
5bebb84103 Added code for setting swift_storage_3
Previously there was not code for role assigment
of a node called swift_storage_3.

This commit updates a conditional statement to
assign a role based on this certname.
2012-02-13 15:42:55 -08:00
Dan Bode
ea7973635b Change swift_local_net_ip address to be a global var
This commit updates the varialbe swift_local_net_ip
to make it a global variable.
2012-02-13 15:41:12 -08:00
Dan Bode
18d681943e Add inline docs to manifests
This commit adds some initial inline documentation
of the manifests.

It also performs some basic whitespace cleanup.
2012-02-13 15:39:18 -08:00
Dan Bode
7228c5cd95 Create multi-node example
It does not work yet, but its getting closer...
2012-01-27 22:11:27 -08:00
Dan Bode
69ef2c1686 Refactor single node example 2012-01-27 22:11:08 -08:00
Dan Bode
4ff3e18f3a Split example manifests into separate files
This commit splits the example manifest into
separate files all and pre and removes the node
declarations
2012-01-23 13:12:57 -08:00
Dan Bode
ece1d8407f Refactor of example site.pp
This commit refactors the previous site.pp example.

Adds ring building types and removes the ringbuilding
file.

Remove unnessary comments.

Adds requirement that swift proxy is only configured
after the ring is built.
2012-01-23 11:44:22 -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