]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/log
ceph-cookbooks.git
12 years agoAdd the HTTP Host: to the access_log record. Useful when using bucket based sub... 55/head
Craig Lewis [Wed, 31 Jul 2013 22:25:04 +0000 (15:25 -0700)]
Add the HTTP Host: to the access_log record.  Useful when using bucket based sub-domains.

12 years agoMerge pull request #44 from Youscribe/fix_osd_status
Alexandre Marangone [Tue, 9 Jul 2013 21:18:12 +0000 (14:18 -0700)]
Merge pull request #44 from Youscribe/fix_osd_status

refactor osd_device status saving

12 years agorefactor osd_device status saving 44/head
Guilhem Lettron [Tue, 9 Jul 2013 15:30:34 +0000 (17:30 +0200)]
refactor osd_device status saving
Currently, chef set status at compile time and no at run-time.
So you can have a problem and a status set

12 years agoMerge pull request #33 from alram/wip-rgw
Alexandre Marangone [Tue, 25 Jun 2013 16:26:28 +0000 (09:26 -0700)]
Merge pull request #33 from alram/wip-rgw

Wip rgw

12 years agoMerge pull request #35 from AcalephStorage/journal-fix
Alexandre Marangone [Mon, 17 Jun 2013 01:01:23 +0000 (18:01 -0700)]
Merge pull request #35 from AcalephStorage/journal-fix

OSD: Journal support

12 years agoAdd support for journals 35/head
Hunter Nield [Tue, 11 Jun 2013 09:08:00 +0000 (17:08 +0800)]
Add support for journals

12 years agoUpdate radosgw_apache2 recipe 33/head
Alexandre Marangone [Tue, 23 Apr 2013 19:13:21 +0000 (12:13 -0700)]
Update radosgw_apache2 recipe

- Multi distro support (CentOS/ubuntu tested)
- apache2::mod_fastcgi only supports Debian/Ubuntu, change it to
an apache_module
- Restart apache once new configuration is applied
- Add fastcgi script template

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoupdate radosgw recipe
Alexandre Marangone [Mon, 22 Apr 2013 23:59:24 +0000 (16:59 -0700)]
update radosgw recipe

- Create /etc/ceph/ dir
- Create/Update ceph.conf with radosgw client
- Support upstart and init
- Create radosgw client keyring

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoMerge pull request #31 from ceph/wip-repo
Sage Weil [Thu, 16 May 2013 06:35:20 +0000 (23:35 -0700)]
Merge pull request #31 from ceph/wip-repo

Wip repo

12 years agoMerge pull request #27 from ceph/osd-fixes
Sage Weil [Thu, 16 May 2013 06:33:11 +0000 (23:33 -0700)]
Merge pull request #27 from ceph/osd-fixes

OSD: service start fixes

12 years agoOSD: service start fixes 27/head
Alexandre Marangone [Tue, 7 May 2013 00:06:31 +0000 (17:06 -0700)]
OSD: service start fixes

- fix upstart job name typo
- start all OSD at the end of the recipe

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoRepo: support custom rpm repos 31/head
Alexandre Marangone [Wed, 8 May 2013 22:06:16 +0000 (15:06 -0700)]
Repo: support custom rpm repos

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoRoles: Add ceph::repo recipe
Alexandre Marangone [Wed, 8 May 2013 18:32:48 +0000 (11:32 -0700)]
Roles: Add ceph::repo recipe

Fixes: https://github.com/ceph/ceph-cookbooks/pull/30
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agorepo: support custom apt repos
Alexandre Marangone [Wed, 8 May 2013 18:32:02 +0000 (11:32 -0700)]
repo: support custom apt repos

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoUpdate stable release to Cuttlefish
Alexandre Marangone [Wed, 8 May 2013 16:55:12 +0000 (09:55 -0700)]
Update stable release to Cuttlefish

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoMerge pull request #25 from shellycloud/master
Alexandre Marangone [Tue, 7 May 2013 22:37:15 +0000 (15:37 -0700)]
Merge pull request #25 from shellycloud/master

Ceph packages should not be upgraded automatically by chef

Reviewed-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoCeph packages should not be upgraded during chef run. 25/head
Maciej Galkiewicz [Sun, 5 May 2013 09:32:54 +0000 (11:32 +0200)]
Ceph packages should not be upgraded during chef run.
It may cause downtime for example when ceph versions are
backward incompatible.

12 years agoMerge pull request #22 from Youscribe/monRefactor
Alexandre Marangone [Thu, 2 May 2013 16:55:47 +0000 (09:55 -0700)]
Merge pull request #22 from Youscribe/monRefactor

Mon refactor

Reviewed-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoUse Mixlib::ShellOut instead of Chef::ShellOut 22/head
Guilhem Lettron [Mon, 29 Apr 2013 12:29:23 +0000 (14:29 +0200)]
Use Mixlib::ShellOut instead of Chef::ShellOut

12 years agoManage starting mon with upstart
Guilhem Lettron [Tue, 23 Apr 2013 08:31:01 +0000 (10:31 +0200)]
Manage starting mon with upstart

12 years agoremove useless require json in mon and add it in libraries
Guilhem Lettron [Tue, 9 Apr 2013 12:50:08 +0000 (14:50 +0200)]
remove useless require json in mon and add it in libraries

12 years agoceph support "status" command
Guilhem Lettron [Tue, 9 Apr 2013 12:37:32 +0000 (14:37 +0200)]
ceph support "status" command

12 years agoPlace service at the end of script to ensure that service is always enable and runnin...
Guilhem Lettron [Tue, 9 Apr 2013 12:33:56 +0000 (14:33 +0200)]
Place service at the end of script to ensure that service is always enable and running after chef is execute

12 years agoDon't use libraries for things that must be in attributes
Guilhem Lettron [Tue, 9 Apr 2013 12:27:50 +0000 (14:27 +0200)]
Don't use libraries for things that must be in attributes

12 years agocreates prevent re-run
Guilhem Lettron [Thu, 21 Mar 2013 09:51:27 +0000 (10:51 +0100)]
creates prevent re-run

refactor to use chef commands
move ceph_bootstrap_osd_key to node['ceph']

we must wait for get osd-bootstrap keyring to finish

Last fixes
create /var/lib/ceph/mon/ceph-{hostname} directory if it doesn't exist.
remove ceph.mon.node attribute (more reflexion to this behaviour later)
fix typo for done file
service ceph-mon-all support restart and status
service must be restart immediately to launch ceph-mon

correct rebase

12 years agoceph-mon-all-starter is a task, not a service
Guilhem Lettron [Thu, 21 Mar 2013 09:47:11 +0000 (10:47 +0100)]
ceph-mon-all-starter is a task, not a service

Ensure that ceph-mon-all is start at the end of recipe

12 years agoMerge pull request #23 from Youscribe/error_osd_device
Alexandre Marangone [Fri, 26 Apr 2013 21:49:37 +0000 (14:49 -0700)]
Merge pull request #23 from Youscribe/error_osd_device

don't break if node["ceph"]["osd_devices"] is empty

Reviewed-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoUpdate RGW apache conf
Alexandre Marangone [Mon, 22 Apr 2013 23:43:37 +0000 (16:43 -0700)]
Update RGW apache conf

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoSupport apache and mod_fastcgi forks for RGW
Alexandre Marangone [Mon, 22 Apr 2013 23:41:05 +0000 (16:41 -0700)]
Support apache and mod_fastcgi forks for RGW

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoHandle different package names for radosgw
Alexandre Marangone [Mon, 22 Apr 2013 21:16:06 +0000 (14:16 -0700)]
Handle different package names for radosgw

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoUpdate ceph.conf template for RGW
Alexandre Marangone [Mon, 22 Apr 2013 18:40:10 +0000 (11:40 -0700)]
Update ceph.conf template for RGW

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agoMerge pull request #24 from shellycloud/master
Alexandre Marangone [Mon, 15 Apr 2013 17:52:31 +0000 (10:52 -0700)]
Merge pull request #24 from shellycloud/master

Fixed finding node's IP address

Reviewed-by: Alexandre Marangone <alexandre.marangone@inktank.com>
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 useless create file from chef value, read variable, create file, remove file... 23/head
Guilhem Lettron [Tue, 9 Apr 2013 13:32:17 +0000 (15:32 +0200)]
remove useless create file from chef value, read variable, create file, remove file...
You forget to fax it

12 years agodon't break if node["ceph"]["osd_devices"] is empty (but log it)
Guilhem Lettron [Tue, 9 Apr 2013 13:22:05 +0000 (15:22 +0200)]
don't break if node["ceph"]["osd_devices"] is empty (but log it)

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"
    }
  }