Experimental RPM packages

#~~~~~ Purpose

Chef development moves at a pretty fast clip. This makes packaging
rather difficult to keep
up with. I’ve decided to make packages of gembundler output with
accompanying wrapper scripts
so that its easier to use chef as its released.

A few notes:

  • I decided to take the lazy way out and skip Centos5.
    These are build against Fedora 12, since its the basis of RHEL6
    beta, and future Centos.

  • They are pretty big. chef-solr is 83M, and chef-server-webui is 76M.

  • There is a metapackage, chef-server that installs all the server components.

  • I left ohai seperate, since it loads fairly slowly compared to the
    regular rubygem-ohai package.

  • I’ve prefixed everything with “affs-”, to avoid confusion.

#~~~~~ To use the packages, do this:

rpm -Uvh http://yum.afistfulofservers.net/affs-chef/fedora/12/noarch/affschef-release-1-1.noarch.rpm

yum clean all
yum -y install affs-chef-server
yum -y install affs-ohai

for svc in rabbitmq-server chef-solr chef-solr-indexer chef-server
chef-server-webui chef-client; do
sudo /sbin/service $svc start
sudo /sbin/chkconfig $svc on
done

#~~~~~ To generate your own packages from gems, do this:

git clone git@github.com:someara/affschef-packages.git
cd affschef-packages/
export PATH=$PATH:pwd/bin

update your %topdir in rpmmmacros, then

mkohairpms
mkchefrpms

This will create directories, write Gemspec files into /opt and then
run bundler.
The output of bundler is then made into a tarball and copied into the
SOURCES dir.
The RPM spec files use these tarballs as pristine source, instead of
individual gems.
Wrapper scripts are installed into /usr/bin.

#~~~~~

Any feedback is very much appreciated!

-s

This is great stuff, Sean!

Adam

On Tue, Sep 28, 2010 at 10:41 AM, Sean OMeara someara@gmail.com wrote:

#~~~~~ Purpose

Chef development moves at a pretty fast clip. This makes packaging
rather difficult to keep
up with. I've decided to make packages of gembundler output with
accompanying wrapper scripts
so that its easier to use chef as its released.

A few notes:

  • I decided to take the lazy way out and skip Centos5.
    These are build against Fedora 12, since its the basis of RHEL6
    beta, and future Centos.

  • They are pretty big. chef-solr is 83M, and chef-server-webui is 76M.

  • There is a metapackage, chef-server that installs all the server components.

  • I left ohai seperate, since it loads fairly slowly compared to the
    regular rubygem-ohai package.

  • I've prefixed everything with "affs-", to avoid confusion.

#~~~~~ To use the packages, do this:

rpm -Uvh http://yum.afistfulofservers.net/affs-chef/fedora/12/noarch/affschef-release-1-1.noarch.rpm

yum clean all
yum -y install affs-chef-server
yum -y install affs-ohai

for svc in rabbitmq-server chef-solr chef-solr-indexer chef-server
chef-server-webui chef-client; do
sudo /sbin/service $svc start
sudo /sbin/chkconfig $svc on
done

#~~~~~ To generate your own packages from gems, do this:

git clone git@github.com:someara/affschef-packages.git
cd affschef-packages/
export PATH=$PATH:pwd/bin

update your %topdir in rpmmmacros, then

mkohairpms
mkchefrpms

This will create directories, write Gemspec files into /opt and then
run bundler.
The output of bundler is then made into a tarball and copied into the
SOURCES dir.
The RPM spec files use these tarballs as pristine source, instead of
individual gems.
Wrapper scripts are installed into /usr/bin.

#~~~~~

Any feedback is very much appreciated!

-s

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

On Tue, Sep 28, 2010 at 12:31 PM, Adam Jacob adam@opscode.com wrote:

This is great stuff, Sean!

Adam

Bundler generating RPMs. I think there is a rift in the space-time
continuum. Cool stuff though!