]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/log
ceph-cookbooks.git
12 years agoFixed indentation in ceph.conf. 24/head
Maciej Galkiewicz [Mon, 15 Apr 2013 14:03:18 +0000 (16:03 +0200)]
Fixed indentation in ceph.conf.

12 years agoFixed finding mon's IP address.
Maciej Galkiewicz [Mon, 15 Apr 2013 11:43:12 +0000 (13:43 +0200)]
Fixed finding mon's IP address.

12 years agoMerge pull request #20 from Youscribe/allow_standalone
Alexandre Marangone [Tue, 9 Apr 2013 15:57:25 +0000 (08:57 -0700)]
Merge pull request #20 from Youscribe/allow_standalone

Allow standalone installation of radosgw

Reviewed-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoremove sysvinit script for radosgw 20/head
Guilhem Lettron [Tue, 9 Apr 2013 12:52:12 +0000 (14:52 +0200)]
remove sysvinit script for radosgw

12 years agoMerge pull request #19 from yuryu/master
Alexandre Marangone [Thu, 4 Apr 2013 16:16:25 +0000 (09:16 -0700)]
Merge pull request #19 from yuryu/master

Fix recipe compile error when 'public network' is set to Ceph environment

Reviewed-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoadd dependency to apache2 v1.1.12
Guilhem Lettron [Tue, 26 Feb 2013 11:47:55 +0000 (12:47 +0100)]
add dependency to apache2 v1.1.12
It add mod_fastcgi

12 years agoManage a standalone installation (without apache2)
Guilhem Lettron [Tue, 26 Feb 2013 11:38:16 +0000 (12:38 +0100)]
Manage a standalone installation (without apache2)
Improve apache2 recipe

12 years ago- Fix recipe compile error when 'public network' is set to Ceph environment 19/head
Yuryu [Thu, 4 Apr 2013 06:26:59 +0000 (15:26 +0900)]
- Fix recipe compile error when 'public network' is set to Ceph environment

================================================================================
Recipe Compile Error in /var/cache/chef/cookbooks/ceph/recipes/mon.rb
================================================================================

NoMethodError
-------------
undefined method `[]' for nil:NilClass

Cookbook Trace:
---------------
  /var/cache/chef/cookbooks/ceph/libraries/default.rb:84:in `get_mon_addresses'
  /var/cache/chef/cookbooks/ceph/libraries/default.rb:84:in `map'
  /var/cache/chef/cookbooks/ceph/libraries/default.rb:84:in `get_mon_addresses'
  /var/cache/chef/cookbooks/ceph/recipes/conf.rb:4:in `from_file'
  /var/cache/chef/cookbooks/ceph/recipes/mon.rb:20:in `from_file'

Relevant File Content:
----------------------
/var/cache/chef/cookbooks/ceph/libraries/default.rb:

 77:      end
 78:
 79:      mons += get_mon_nodes()
 80:      if is_crowbar?
 81:        mon_ips = mons.map { |node| Chef::Recipe::Barclamp::Inventory.get_network_by_type(node, "admin").address }
 82:      else
 83:        if node['ceph']['config']['global'] && node['ceph']['config']['global']['public network']
 84>>         mon_ips = mons.map { |node| find_node_ip_in_network(node['ceph']['config']['global']['public network'], node) }
 85:        else
 86:          mon_ips = mons.map { |node| node['ipaddress'] + ":6789" }
 87:        end
 88:      end
 89:    end
 90:    return mon_ips.uniq
 91:  end
 92:
 93:  def get_quorum_members_ips()

12 years agoMerge pull request #18 from alram/master
Sage Weil [Fri, 29 Mar 2013 19:23:45 +0000 (12:23 -0700)]
Merge pull request #18 from alram/master

Fix for old ceph-disk-prepare

12 years agoFix issue with old ceph-disk-prepare 18/head
Alexandre Marangone [Fri, 29 Mar 2013 17:39:26 +0000 (10:39 -0700)]
Fix issue with old ceph-disk-prepare

Old ceph-disk-prepare re-write the partition table and fail before writting
the Parition GUID.
This fix tests the presence of a osd_device status, if present, we skip
the OSD.
It also fix a typo when setting the osd_device status

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoMerge pull request #17 from alram/wip-rpm-distro
Sage Weil [Wed, 27 Mar 2013 05:52:20 +0000 (22:52 -0700)]
Merge pull request #17 from alram/wip-rpm-distro

Chef support for CentOS/RHEL, Fedora and SuSE

Reviewed-by-not-tested-by: Sage Weil <sage@inktank.com>
12 years agoCreate mon data dir before calling ceph-mon --mkfs 17/head
Alexandre Marangone [Mon, 25 Mar 2013 19:42:19 +0000 (12:42 -0700)]
Create mon data dir before calling ceph-mon --mkfs

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoUpstart and SYSV Init support
Alexandre Marangone [Thu, 21 Mar 2013 18:02:32 +0000 (11:02 -0700)]
Upstart and SYSV Init support

- Handles different service names between upstart
and sysvinit.
- Create mon_dir/(upstart|sysvinit) depending on
service to be used.

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoSupport EL, Fedora and (open)SuSE repo
Alexandre Marangone [Thu, 21 Mar 2013 17:58:38 +0000 (10:58 -0700)]
Support EL, Fedora and (open)SuSE repo

- Recipe is now ceph::repo
- For EL, add EPEL repository for dependencies by default.
Deactivable by using el_add_epel: false under ceph: {} in
the chef environment.
- Handle package names difference between EL/FC/SuSE and Debian.

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoMerge pull request #16 from alram/master
Sage Weil [Wed, 20 Mar 2013 23:24:54 +0000 (16:24 -0700)]
Merge pull request #16 from alram/master

ceph-cookbooks patches

Reviewed-by: Greg Farnum <greg@inktankcom>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agochange cookbook version to 0.1.0 16/head
Alexandre Marangone [Wed, 20 Mar 2013 16:55:09 +0000 (09:55 -0700)]
change cookbook version to 0.1.0

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoUpdate README.md
Alexandre Marangone [Wed, 20 Mar 2013 16:52:30 +0000 (09:52 -0700)]
Update README.md

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoadd node env sample
Alexandre Marangone [Fri, 15 Mar 2013 19:33:21 +0000 (12:33 -0700)]
add node env sample

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoAdd OSD deployment when not using crowbar
Alexandre Marangone [Fri, 15 Mar 2013 19:32:16 +0000 (12:32 -0700)]
Add OSD deployment when not using crowbar

Also installs cryptsetup in case dmcrypt is being used

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agochange template to be more flexible
Alexandre Marangone [Fri, 15 Mar 2013 19:26:23 +0000 (12:26 -0700)]
change template to be more flexible

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoadd, hopefully, helpful comments
Alexandre Marangone [Fri, 15 Mar 2013 19:25:55 +0000 (12:25 -0700)]
add, hopefully, helpful comments

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoCeph will automatically create the admin and bootstrap keys
Alexandre Marangone [Fri, 15 Mar 2013 19:24:59 +0000 (12:24 -0700)]
Ceph will automatically create the admin and bootstrap keys

We just need to store the boostrap-osd key once it is created

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoSet mon to use upstart
Alexandre Marangone [Fri, 15 Mar 2013 19:24:09 +0000 (12:24 -0700)]
Set mon to use upstart

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agocreate /var/run/ceph/
Alexandre Marangone [Fri, 15 Mar 2013 19:23:27 +0000 (12:23 -0700)]
create /var/run/ceph/

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoremove unused block
Alexandre Marangone [Fri, 15 Mar 2013 19:20:28 +0000 (12:20 -0700)]
remove unused block

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoMerge pull request #15 from Youscribe/separateDebug
Sage Weil [Thu, 14 Mar 2013 17:27:46 +0000 (10:27 -0700)]
Merge pull request #15 from Youscribe/separateDebug

separate *-dbg packages and add an attribute to manage it

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoconcat in ruby way 15/head
Guilhem Lettron [Thu, 7 Mar 2013 09:36:38 +0000 (10:36 +0100)]
concat in ruby way

12 years agoseparate *-dbg packages and add an attribute to manage it
Guilhem Lettron [Wed, 6 Mar 2013 17:08:43 +0000 (18:08 +0100)]
separate *-dbg packages and add an attribute to manage it

13 years agoMerge pull request #14 from Youscribe/rgw_port
Sage Weil [Tue, 26 Feb 2013 18:45:01 +0000 (10:45 -0800)]
Merge pull request #14 from Youscribe/rgw_port

manage rgw_port on radosgw recipe

Reviewed-by: Sage Weil <sage@inktank.com>
13 years agomanage rgw_port on radosgw recipe 14/head
Guilhem Lettron [Tue, 26 Feb 2013 11:42:00 +0000 (12:42 +0100)]
manage rgw_port on radosgw recipe

13 years agoMerge pull request #12 from Tech-Corps/update-apt-repos
Gregory Farnum [Thu, 17 Jan 2013 01:59:54 +0000 (17:59 -0800)]
Merge pull request #12 from Tech-Corps/update-apt-repos

Update apt repos to be inline with doc changes

13 years agoUpdate apt repos to be inline with doc changes 12/head
Brian Staszewski [Thu, 17 Jan 2013 00:13:04 +0000 (16:13 -0800)]
Update apt repos to be inline with doc changes

See http://ceph.com/docs/master/install/debian/

13 years agoMerge pull request #10 from seanchannel/patch-1
Gregory Farnum [Fri, 11 Jan 2013 19:26:54 +0000 (11:26 -0800)]
Merge pull request #10 from seanchannel/patch-1

delete NewDreamNetwork url

13 years agouse ceph.com instead of ceph.newdream.net for apt repos
Greg Farnum [Thu, 13 Dec 2012 19:24:16 +0000 (11:24 -0800)]
use ceph.com instead of ceph.newdream.net for apt repos

13 years agoMerge pull request #11 from Youscribe/apt
Gregory Farnum [Thu, 13 Dec 2012 19:18:13 +0000 (11:18 -0800)]
Merge pull request #11 from Youscribe/apt

use "apt" cookbook to manage apt file.

13 years agouse "apt" cookbook to manage apt file. 11/head
Guilhem Lettron [Tue, 30 Oct 2012 16:46:39 +0000 (17:46 +0100)]
use "apt" cookbook to manage apt file.

Add "testing" as possible branch

13 years agodelete NewDreamNetwork url 10/head
Sean Channel [Mon, 10 Sep 2012 22:58:17 +0000 (15:58 -0700)]
delete NewDreamNetwork url

I'm new to ceph, but there doesn't seem to be a github account for NewDreamNetwork anymore, right?

13 years agoClean up unused variable.
Tommi Virtanen [Tue, 14 Aug 2012 20:13:21 +0000 (13:13 -0700)]
Clean up unused variable.

13 years agoCrowbar: Don't try to play nice with Swift.
Tommi Virtanen [Mon, 6 Aug 2012 20:24:11 +0000 (13:24 -0700)]
Crowbar: Don't try to play nice with Swift.

We tried to avoid using data disks that swift-storage has taken over,
but nothing guarded us against Swift stepping on our toes. Similarly,
we never protected nova-multi-volume's toes. Current Crowbar just
doesn't solve this problem; don't try.

Do NOT install ceph-osd on the same machine as swift-storage or
nova-multi-volume.

13 years agoFoodcritic cleanup.
Tommi Virtanen [Thu, 2 Aug 2012 21:59:34 +0000 (14:59 -0700)]
Foodcritic cleanup.

13 years agoSimplify recipes: merge bootstrap_osd into osd.
Tommi Virtanen [Thu, 2 Aug 2012 21:51:56 +0000 (14:51 -0700)]
Simplify recipes: merge bootstrap_osd into osd.

13 years agoSimplify recipes: merge rados-rest into radosgw.
Tommi Virtanen [Thu, 2 Aug 2012 21:51:56 +0000 (14:51 -0700)]
Simplify recipes: merge rados-rest into radosgw.

13 years agomake swift disk check more careful
Greg Farnum [Fri, 27 Jul 2012 22:25:23 +0000 (15:25 -0700)]
make swift disk check more careful

13 years agoMerge pull request #7 from johnae/master
Gregory Farnum [Thu, 26 Jul 2012 16:57:19 +0000 (09:57 -0700)]
Merge pull request #7 from johnae/master

Make default radosgw attributes same as those expected in recipe

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 agoMake default attributes keys same as those expected in recipe 7/head
John Axel Eriksson [Sat, 21 Jul 2012 18:58:13 +0000 (20:58 +0200)]
Make default attributes keys same as those expected in recipe

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.