]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/log
ceph-cookbooks.git
13 years agoWarn about basename of clone needing to be "ceph".
Tommi Virtanen [Wed, 25 Jul 2012 22:23:36 +0000 (15:23 -0700)]
Warn about basename of clone needing to be "ceph".

13 years agoCrowbar: use all "Storage" disks for OSD.
Tommi Virtanen [Wed, 25 Jul 2012 21:57:44 +0000 (14:57 -0700)]
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.

13 years agoCrowbar: Make bootstrap_osd find mons.
Tommi Virtanen [Wed, 25 Jul 2012 21:55:53 +0000 (14:55 -0700)]
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?

13 years agoRefactor to add extra search criteria to get_mon_nodes, so it can be reused.
Tommi Virtanen [Wed, 25 Jul 2012 21:52:38 +0000 (14:52 -0700)]
Refactor to add extra search criteria to get_mon_nodes, so it can be reused.

13 years agoShare more code inside get_mon_nodes.
Tommi Virtanen [Wed, 25 Jul 2012 22:55:46 +0000 (15:55 -0700)]
Share more code inside get_mon_nodes.

Only call search() in one place, just build different search strings
for Crowbar and non-Crowbar.

13 years agoRefactor to extract get_mon_nodes() utility function.
Tommi Virtanen [Wed, 25 Jul 2012 21:26:19 +0000 (14:26 -0700)]
Refactor to extract get_mon_nodes() utility function.

13 years agoAdd current node to mon_hosts, if it has role ceph-mon.
Tommi Virtanen [Fri, 20 Jul 2012 21:32:18 +0000 (14:32 -0700)]
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.

13 years agoEnforce the name of the cookbook as "ceph".
Tommi Virtanen [Fri, 13 Jul 2012 17:49:45 +0000 (10:49 -0700)]
Enforce the name of the cookbook as "ceph".

13 years agoRevert last three commits.
Tommi Virtanen [Fri, 13 Jul 2012 17:44:16 +0000 (10:44 -0700)]
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.

13 years agodoc: rollback file names and role names for sanity check.
John Wilkins [Thu, 12 Jul 2012 18:43:44 +0000 (11:43 -0700)]
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>
13 years agodoc: renamed for consistency.
John Wilkins [Thu, 12 Jul 2012 17:57:31 +0000 (10:57 -0700)]
doc: renamed for consistency.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agodoc: Updated roles to point to ceph-cookbooks:recipe.
John Wilkins [Thu, 12 Jul 2012 00:31:49 +0000 (17:31 -0700)]
doc: Updated roles to point to ceph-cookbooks:recipe.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agoMake ceph::osd recipe install gdisk for ceph-disk-prepare.
Tommi Virtanen [Wed, 11 Jul 2012 17:07:19 +0000 (10:07 -0700)]
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.

13 years agoMove ceph/* to top-level.
Tommi Virtanen [Mon, 9 Jul 2012 22:46:52 +0000 (15:46 -0700)]
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>

13 years agoRely on the apache2 cookbook to install relevant apache packages.
Tommi Virtanen [Mon, 9 Jul 2012 22:24:08 +0000 (15:24 -0700)]
Rely on the apache2 cookbook to install relevant apache packages.

Thanks to Guilhem Lettron for pointing this out.

13 years agoMerge pull request #6 from Youscribe/fixRadosgw
John Wilkins [Mon, 9 Jul 2012 16:48:34 +0000 (09:48 -0700)]
Merge pull request #6 from Youscribe/fixRadosgw

Fix radosgw

13 years agouse "localhost" is more conventional than "127.0.0.1" 6/head
Guilhem Lettron [Mon, 9 Jul 2012 14:10:22 +0000 (16:10 +0200)]
use "localhost" is more conventional than "127.0.0.1"

13 years agofix attribute to match attributes/radosgw.rb
Guilhem Lettron [Mon, 9 Jul 2012 14:09:40 +0000 (16:09 +0200)]
fix attribute to match attributes/radosgw.rb

13 years agodoc: Removed my add of ceph-env.rb, because it's not particularly useful.
John Wilkins [Tue, 3 Jul 2012 17:09:33 +0000 (10:09 -0700)]
doc: Removed my add of ceph-env.rb, because it's not particularly useful.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agoAdded environments dir and file. Added roles dir and file for knife from file.
John Wilkins [Wed, 27 Jun 2012 00:21:31 +0000 (17:21 -0700)]
Added environments dir and file. Added roles dir and file for knife from file.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agoPassthrough non-global ceph.conf values in a separate hash.
Tommi Virtanen [Fri, 8 Jun 2012 22:42:26 +0000 (15:42 -0700)]
Passthrough non-global ceph.conf values in a separate hash.

For example:

  "config-sections": {
    "osd": {
      "osd_journal_size": "3000"
    }
    "osd.42": {
      "debug ms": "20"
    }
  }

13 years agoPassthrough arbitrary (global) config variables to ceph.conf.
Tommi Virtanen [Fri, 8 Jun 2012 22:40:22 +0000 (15:40 -0700)]
Passthrough arbitrary (global) config variables to ceph.conf.

Still sanity checking that the ones we want are provided.

13 years agoGive ceph-mon hints about its peers.
Tommi Virtanen [Fri, 8 Jun 2012 21:55:07 +0000 (14:55 -0700)]
Give ceph-mon hints about its peers.

This handles the case where ceph-mon already started, already read a
mon_host from ceph.conf, but more nodes (needed for initial quorum)
had the ceph-mon role added to them after the fact, and thus weren't
in mon_host at startup time.

13 years agoRefactor to extract get_mon_addresses.
Tommi Virtanen [Fri, 8 Jun 2012 21:53:18 +0000 (14:53 -0700)]
Refactor to extract get_mon_addresses.

13 years agoCleanup: combine ceph::single_mon into ceph::mon.
Tommi Virtanen [Fri, 8 Jun 2012 17:54:34 +0000 (10:54 -0700)]
Cleanup: combine ceph::single_mon into ceph::mon.

13 years agoRemove unused recipes oss and xattr.
Tommi Virtanen [Fri, 8 Jun 2012 17:51:18 +0000 (10:51 -0700)]
Remove unused recipes oss and xattr.

oss was used by DreamHost to deploy obsync.

xattr was used by a workaround for running an ext4 osd on rootfs.

13 years agoceph::mon does NOT depend on radosgw, no idea what was going on here.
Tommi Virtanen [Fri, 8 Jun 2012 17:50:26 +0000 (10:50 -0700)]
ceph::mon does NOT depend on radosgw, no idea what was going on here.

Cleaning up the inherited recipes.

13 years agoInstall ceph-common in ceph::default.
Tommi Virtanen [Fri, 8 Jun 2012 17:48:47 +0000 (10:48 -0700)]
Install ceph-common in ceph::default.