[chef] Re: Re: Chef Server on Vagrant


Chronological Thread 
  • From: Torben Knerr < >
  • To:
  • Subject: [chef] Re: Re: Chef Server on Vagrant
  • Date: Wed, 17 Oct 2012 00:02:12 +0200

Or you could use Fletcher Nichol's awesome knife-server plugin [1] for bootstrapping a Chef Server from scratch. In order to make the bootstrap process more realistic you could use a bare OS basebox [2] with no Guestadditons, Ruby or Chef installed. If you do this repeatedly and it becomes too fine-consuming you might consider to repackage a new basebox once Chef Server is installed...

[1] http://fnichol.github.com/knife-server/
[2] https://github.com/tknerr/bills-kitchen-repo/blob/master/Vagrantfile#L10-34

Am 16.10.2012 17:02 schrieb "Karel Minařík" < "> >:
Hi,

you may what to have a look at the repo I posted recently: http://git.io/chef-hello-cloud

It does a fully automated Chef Server-based installation in Vagrant. This is the relevant part of the Vagrantfile: https://github.com/karmi/chef-hello-cloud/blob/master/Vagrantfile#L95-111

Karel

On Oct 16, 2012, at 10:30 AM, srawilliams < "> > wrote:

> Hi,
>
> I am a newbie to chef and need help.
>
> I want developers to be able to check out an infrastructure and build a mirror
> of live, locally on vagrant. So that builds closely mirror production I want to
> provision a chef server as part of the local build.
>
> So the first step of the run will be to set up and provision a chef server with
> all the recipies, roles etc from the chef-repo.
>
> Seems straight forward enough to get the chef server provisioned using
> chef-solo and rubygems-install. However I am now stumped as to how to get the
> the recipies etc loaded onto the server.  Clearly I can do this in a
> non-automated way using knife but what i am really after is a seamless
> automation, so that the server is built with no manual intervention.   I want
> the developers to check out the project and with a single command provision the
> whole environment including generation of client auth for knife etc.
>
> Has anyone else had experience of doing this and if so can you point me at
> documentation or a working example.
>
> Cheers
>
> Sean




Archive powered by MHonArc 2.6.16.

§