- From: AJ Christensen <
>
- To: chef <
>
- Subject: [chef] Re: Re: bootstrapping Chef server fails with "no valid gem 'chef-server-api' (= 11.0.0)"
- Date: Tue, 5 Feb 2013 14:05:38 +1300
If you pass the '-r' remote cookbook URL flag to chef-solo it will
download the bootstrap-latest.tar.gz and extract it to the cookbook
path, effectively clobbering your work of deploying a copy of the Git
cookbook; reverting you back to 1.1.1.
This will not work.
You need to use the chef-server v2.0.0 cookbook to deploy erchef11.
The opscode chef-server v2.0.0 cookbook has been very reliable in all
of my testing across all of the platforms we have under management.
Cheers,
AJ
On 5 February 2013 13:10, Phil Mocek
<
>
wrote:
>
On Mon, Feb 04, 2013 at 04:13:37PM -0700, Joshua Timberman wrote:
>
> We haven't released to the community site the chef-server
>
> cookbook version for chef 11.
>
>
>
> You can get it from the GitHub repository. We will release the
>
> new version (2.0.0) later today.
>
>
Thanks for the tip.
>
>
Unfortunately, it seems the problem is that
>
<http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz> still
>
contains the obsolete cookbook. I put a copy of chef-server
>
cookbook 2.0.0 in the location where chef-solo is configured to
>
expect cookbooks:
>
>
>>
:~#
>
>> grep ^cookbook /etc/chef/solo.rb
>
>> cookbook_path "/tmp/chef-solo/cookbooks"
>
>>
:~#
>
>> grep ^version /tmp/chef-solo/cookbooks/chef-server/metadata.rb
>
>> version "1.1.1"
>
>>
:~#
>
>> cd /tmp/chef-solo/cookbooks/
>
>>
:/tmp/chef-solo/cookbooks#
>
>> rm -rf chef-server
>
>>
:/tmp/chef-solo/cookbooks#
>
>> git clone git://github.com/opscode-cookbooks/chef-server.git
>
>> Cloning into 'chef-server'...
>
>> remote: Counting objects: 460, done.
>
>> remote: Compressing objects: 100% (240/240), done.
>
>> remote: Total 460 (delta 233), reused 407 (delta 188)
>
>> Receiving objects: 100% (460/460), 87.39 KiB, done.
>
>> Resolving deltas: 100% (233/233), done.
>
>>
:/tmp/chef-solo/cookbooks#
>
>> cd -
>
>>
:~#
>
>> grep ^version /tmp/chef-solo/cookbooks/chef-server/metadata.rb
>
>> version "2.0.0"
>
>
I again ran:
>
>
>> chef-solo -c /etc/chef/solo.rb -j /etc/chef/chef.json -r
>
>> http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz
>
>
And I observed the same failure.
>
>
Is there a more reliable method of bootstrapping a Chef server?
>
Alternatively, what would I need to modify in order to install a
>
version of Chef server that is compatible with the chef-server
>
cookbook in the bootstrap-latest archive?
>
>
Again: I'm following [directions on the Opscode wiki][1]. I
>
don't see any server installation documentation on the [docs
>
site][2].
>
>
>
References:
>
>
[1]:
>
<http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo#InstallingChefServerusingChefSolo-BootstrapChefServer>
>
[2]: <http://docs.opscode.com/#the-chef-server>
>
>
--
>
Phil Mocek
>
http://mocek.org/
Archive powered by MHonArc 2.6.16.