doc: Removed my add of ceph-env.rb, because it's not particularly useful.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
fix attribute to match attributes/radosgw.rb
use "localhost" is more conventional than "127.0.0.1"
Merge pull request #6 from Youscribe/fixRadosgw

Fix radosgw
Rely on the apache2 cookbook to install relevant apache packages.

Thanks to Guilhem Lettron for pointing this out.
Move ceph/* to top-level.

This repository used to be a collection of several cookbooks, but this
hasn't been true for a month, since
a77b418b95df8f2b6f56d9a90e47dc62100cdf4d. Simplifies the file layout
and makes this look more like your usual cookbook.

Thanks to Guilhem Lettron <guilhem@lettron.fr>
Make ceph::osd recipe install gdisk for ceph-disk-prepare.

ceph.deb only recommends it, as there are ways of using Ceph without
using ceph-disk-prepare.
doc: Updated roles to point to ceph-cookbooks:recipe.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: renamed for consistency.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: rollback file names and role names for sanity check.

Removing ceph directory causes problems, because of many references to ceph::something.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Revert last three commits.

The roles are named ceph-mon etc. The recipes are named ceph::mon etc.
The cookbook is named "ceph". The git repository is named
"ceph-cookbooks.git". The string "ceph-cookbooks" should not be
anywhere in the code anywhere inside of the cookbook.
Enforce the name of the cookbook as "ceph".
Add current node to mon_hosts, if it has role ceph-mon.

This shortcircuits the search logic, so ceph-mon --mkfs will always
see itself in ceph-mon, and thus won't end up with an empty monmap.
Empty monmap would prevent it from initializing properly, and the
peer hints aren't enough to help.

Search is not reliable for this, as the search index updates lazily,
and e.g. the "roles:" field, holding the expanded run_list, is only
set at the end of a successful chef-client run.

Crowbar creates a special-purpose role, one per node, and assigns the
actual roles to that role. We work around this by doing the search in
two phases, when running under Crowbar.

Thanks to Tyler Brekke.
Make default attributes keys same as those expected in recipe
Refactor to extract get_mon_nodes() utility function.
Share more code inside get_mon_nodes.

Only call search() in one place, just build different search strings
for Crowbar and non-Crowbar.
Refactor to add extra search criteria to get_mon_nodes, so it can be reused.
Crowbar: Make bootstrap_osd find mons.

Crowbar has switched to per-node special-purpose roles, a direct
search for role: won't find the actual roles (and roles: is updated
too late to be generally useful, though it might work here --
preferring this way so the search logic is implemented only once).

Rewrite .length < 1 using the more ruby-like .empty?
Crowbar: use all "Storage" disks for OSD.

Verify that the disk has not been taken by Swift already.

Once all disks have been prepared, trigger a hotplug event,
to activate them, and ultimately get OSDs using them.
Warn about basename of clone needing to be "ceph".