Question on bootstrapping a particular version of chef-server


#1

I am trying to find out if there is a way to bootstrap a particular version of
chef-server using chef-solo. Currently, the Opscode wiki talks about using
bootstrap-latest.tar.gz which gives me 0.10.8 and I would like to get 0.10.6. I
couldn’t find any documentation on selecting a particular version.

I have tried bootstrap-0.10.6.tar.gz & bootstrap-0.10.6-1.tar.gz but to no
avail.

thanks in advance!

pranoy


#2

Hi Pranoy,

To solve issues like this, I created my own custom bootstrap. Our custom bootstrapper identifies the OS and installs Ruby, Gems and the Chef Client from rpms (from a repo) based on the OS and version.

We built the rpms with FPM (Effing Package Management) from tarballs that we created post ruby, gems and chef client installation for CentOS 5/6 and SLES 10/11…
FPM -> https://github.com/jordansissel/fpm/wiki

Hope this helps…

Randy

-----Original Message-----
From: pranoy.rao@gmail.com [mailto:pranoy.rao@gmail.com]
Sent: Sunday, April 29, 2012 3:42 PM
To: chef@lists.opscode.com
Subject: [chef] question on bootstrapping a particular version of chef-server

I am trying to find out if there is a way to bootstrap a particular version of chef-server using chef-solo. Currently, the Opscode wiki talks about using bootstrap-latest.tar.gz which gives me 0.10.8 and I would like to get 0.10.6. I couldn’t find any documentation on selecting a particular version.

I have tried bootstrap-0.10.6.tar.gz & bootstrap-0.10.6-1.tar.gz but to no avail.

thanks in advance!

pranoy


#3

On Sun, Apr 29, 2012 at 3:42 PM, pranoy.rao@gmail.com wrote:

I am trying to find out if there is a way to bootstrap a particular version of
chef-server using chef-solo. Currently, the Opscode wiki talks about using
bootstrap-latest.tar.gz which gives me 0.10.8 and I would like to get 0.10.6. I
couldn’t find any documentation on selecting a particular version.

The chef-server::rubygems-install recipe that is included in the
tarball of cookbooks in bootstrap uses the
node[:chef_packages][:chef][:version] variable to decide what version
of the chef-server gem to install.

Following the directions here:
http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo,
you would want your chef.json file that you pass to chef-solo to look
like this:

{
“chef_packages”: {
“chef”: {
“version”: “0.10.6”
}
},
“chef_server”: {
“server_url”: “http://localhost:4000”,
“init_style”: “init”
},
“run_list”: [ “recipe[chef-server::rubygems-install]” ]
}

Bryan


#4

Thanks Bryan. I will try this out.

On Mon, Apr 30, 2012 at 10:16 AM, Bryan McLellan btm@loftninjas.org wrote:

On Sun, Apr 29, 2012 at 3:42 PM, pranoy.rao@gmail.com wrote:

I am trying to find out if there is a way to bootstrap a particular
version of
chef-server using chef-solo. Currently, the Opscode wiki talks about
using
bootstrap-latest.tar.gz which gives me 0.10.8 and I would like to get
0.10.6. I
couldn’t find any documentation on selecting a particular version.

The chef-server::rubygems-install recipe that is included in the
tarball of cookbooks in bootstrap uses the
node[:chef_packages][:chef][:version] variable to decide what version
of the chef-server gem to install.

Following the directions here:
http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo
,
you would want your chef.json file that you pass to chef-solo to look
like this:

{
“chef_packages”: {
“chef”: {
“version”: “0.10.6”
}
},
“chef_server”: {
“server_url”: “http://localhost:4000”,
“init_style”: “init”
},
“run_list”: [ “recipe[chef-server::rubygems-install]” ]
}

Bryan