Issue Details (XML | Word | Printable)

Key: COOK-115
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Joshua Timberman
Reporter: Matthew Kent
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Chef Cookbooks

centos rpm based bootstrap

Created: 20/May/09 12:17 AM   Updated: 21/May/09 01:34 AM   Resolved: 21/May/09 01:34 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Environment:

CentOS 5.3



 Description  « Hide

Currently there is no functional bootstrap for CentOS comparable to Ubuntu/Debian.

After considerable time I've got a functioning pure rpm bootstrap for chef+apache2+mod_passenger on CentOS finished. See the instructions here http://chef.viviti.com/.

These changes are broken into two parts:

1) The apache2 changes contained in COOK-75. These changes (hopefully) should be fine to merge regardless of this ticket. If those get in the changeset for 2) is much smaller.

2) Another branch @ http://github.com/mdkent/cookbooks/commits/el5 which

  • Adds a 'packages' recipe with a dist_only? lib and attribute to indicate the desire for 'distribution' packages (rpm in our case) rather than calling for gems directly (defaults to false).
  • Modifies chef server/client and stompserver to make runit conditional on platform. Instead we toss in some redhat style init scripts for appropriate platforms.
  • Tweaks mod_rails/passenger to use the rpms based on dist_only?.

These changes are all conditional and don't (to my knowledge) get in the way of the current default Ubuntu bootstrap. I've tested these changes successfully on vanilla centos and ubuntu 9.04 virtual machines.

The only wrinkle is the requirement for external repositories, EPEL and ELFF. This is unfortunately a necessary evil it seems as CentOS has neither rubygems, couchdb, or the correct version of ruby that merb requires (as jtimberman pointed out). Fortunately I run the ELFF repo and am able to package most things.

I would very much like to make this the default method for chef on CentOS/RHEL and am willing to volunteer some time to keep it current.

Is it possible to merge these changes?



Sort Order: Ascending order - Click to sort in descending order
Matthew Kent added a comment - 20/May/09 12:24 AM

Looking for feedback.


Matthew Kent added a comment - 20/May/09 12:33 AM

Joshua Timberman added a comment - 20/May/09 02:32 AM

Thanks Matthew, I'll take a look tomorrow or Thursday!


Joshua Timberman added a comment - 20/May/09 07:06 AM

And FWIW, I don't think its out of the question to require third party repositories to support installing a third party configuration tool .


Joshua Timberman added a comment - 21/May/09 01:34 AM

Tested and merged, thank you Matthew!