down the pipe we go
Well I took the plunge and decided to upgrade my development chef-server to .8 alpha, and as I will honestly say it was a bit bumpy getting setup; but after a little work I got everything working.
Some oddity’s i’m sure will get cleaned up during the process, but I figured I would outline what I did to get it up and running so others can hack on it and make chef .8 a better place!
- I’m running Ubuntu Karmic release, keep that in mind….
Step 1, install the gems you need…
gem install jeweler libxml-ruby merb-haml
mkdir git;cd git;git clone git://github.com/ezmobius/nanite.git
cd nanite;rake install
Step 2, Got java? Hope so if you don’t install it now (you can use the java cookbook provided by opscode do to this, fyi chef-solo works to do this)
Step 3, rabbitmq? got it? get it.
wget "http://www.rabbitmq.com/releases/rabbitmq-server/v1.7.0/rabbitmq-server_1.7.0-1_all.deb"
dpkg -i rabbitmq-server_1.7.0-1_all.deb
<code>
I’m sure there should be a warning about running rabbitmq unsecured here, I have no great detailed knowledge about rabbitmq’s security so please read their web site if you have concerns.
Step 4, clone the chef repo
mkdir git;cd git;git clone git://github.com/opscode/chef.git
cd chef;rake install
Step 5, rake install
- You may notice errors about missing dependencies; install them and it keep trying until you succeed.
Step 6, setup a dev environment (I assumed there was no bootstrap system put together yet for .8 … so this pretty much made the certs I needed to get going
cd git;cd chef;rake dev:features
- This will create all the necessary certs to get the server up and running from what I can tell, then you can copy them from /tmp/chef_integration to /etc/chef, and copy from features/data/config/client.rb and server.rb to /etc, and update the path names so they are what you want.
- ^C out of it, now run nanite-mapper, then hit up screen and run chef-server and then cd ~/git/chef/chef-server-webui;slice -p 4900 and hitup http://ip:4900
- Login via openid, create a client with admin privileges for use with knife, and have fun.
Posted by scottmlikens on Thursday, November 05, 2009