RE: using berkself and solo, does file layout this look correct?

Hello,

After breaking the cookbook using:

berks cookbook testcookbook

I then created the following:

/roles/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
/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!

any comments about if I am doing it correctly?

On Fri, Jun 20, 2014 at 5:09 PM, S Ahmed sahmed1020@gmail.com wrote:

Hello,

After breaking the cookbook using:

berks cookbook testcookbook

I then created the following:

/roles/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
/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!

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 <sahmed1020@gmail.com (mailto:sahmed1020@gmail.com)> 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

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 dan@kallistec.com 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 <sahmed1020@gmail.com (mailto:
sahmed1020@gmail.com)> 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

http://docs.opscode.com/essentials_roles.html

--
Daniel DeLeo

On Saturday, July 12, 2014 at 9:30 AM, S Ahmed wrote:

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 <dan@kallistec.com (mailto:dan@kallistec.com)> 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 <sahmed1020@gmail.com (mailto:sahmed1020@gmail.com) (mailto:sahmed1020@gmail.com)> wrote:

Hello,

After breaking the cookbook using:

berks cookbook testcookbook

I then created the following:

/roles/web.rb (http://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) (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