[chef] Re: Re: Re: using berkself and solo, does file layout this look correct?


Chronological Thread 
  • From: S Ahmed < >
  • To:
  • Subject: [chef] Re: Re: Re: using berkself and solo, does file layout this look correct?
  • Date: Sat, 12 Jul 2014 12:30:36 -0400

Can I see any example of a ruby formatted role?  Not sure what the file name is or where the file should be?


On Thu, Jul 10, 2014 at 11:52 AM, Daniel DeLeo < " target="_blank"> > wrote:


On Thursday, July 10, 2014 at 8:41 AM, S Ahmed wrote:

> any comments about if I am doing it correctly?
>
>
> On Fri, Jun 20, 2014 at 5:09 PM, S Ahmed < "> (mailto: "> )> wrote:
> > Hello,
> >
> > After breaking the cookbook using:
> >
> > > berks cookbook testcookbook
> >
> > I then created the following:
> >
> > /roles/web.rb (http://web.rb) # front-end web servers
> > /roles/db.rb # db server
> > /roles/search.rb # search servers
> >
> > I then created a seperate json file for each chef-solo role:
> >
> > /solo/web.json (http://web.json)
> > /solo/db.json
> > /solo/search.json
> >
> > I will then use berkself vendor to save to /cookbooks
> >
> > I then run chef solo on each server role using the appriopriate .json file.
> >
> > Is this reasonable?
> >
> > thanks!
chef-solo is capable of using ruby formatted roles directly, so you can just package those up and ship them to your nodes without converting to json.

Also, berkshelf can package your cookbooks for chef-solo using the `berks package` command, see the "PACKAGING COOKBOOKS” section of http://berkshelf.com

--
Daniel DeLeo







Archive powered by MHonArc 2.6.16.

§