[chef] Re: Berkshelf with chef-repo: am I doing it right?


Chronological Thread 
  • From: Morgan Blackthorne < >
  • To: " " < >
  • Subject: [chef] Re: Berkshelf with chef-repo: am I doing it right?
  • Date: Sat, 30 Nov 2013 01:49:06 -0800

That would be best done by a Rake set of knife tasks. However, any clients trying to run against the server during that time will likely fail. If you have a static infrastructure, that's probably not an issue, but if you dynamically bootstrap things like compute instances, it could be an issue.

On Friday, November 29, 2013, Vladimir Skubriev wrote:
29.11.2013 16:22, Cassiano Leal пишет:
I have more than one Chef Server, each with their own set of data bags, roles, nodes, cookbooks, etc.

While I don’t commit my cookbooks to the chef-repo’ VCS, I still maintain a cookbooks/ directory in it (which is on .gitignore), and keep everything that’s part of that Chef infrastructure under the chef-repo root path.

Cookbooks and their dependencies are managed and uploaded using Berkshelf, so I only have the cookbooks I’m working on under chef-repo/cookbooks.

I don’t ever use "knife cookbook upload”. Instead I use “berks upload” from the cookbook’s root.

On Friday, November 29, 2013 at 09:54, Vladimir Skubriev wrote:

29.11.2013 14:47, Kevin Yank пишет:

Is this how others are using Berkshelf with a chef-repo, or have I missed something?

Answering my own question, I finally stumbled on a GitHub Issue that explains it all. If only the docs did as well!

I’ve posted my own summary for the curious:

--
Kevin Yank
Chief Technology Officer, Avalanche Technology Group
Thank you. I see you last comment and this is good explanation for problem.

I started with a my own "community" chef-server and work with it a year ago.

I have a very long time for decide: "I need it(chef-server) or not"

I could not decide using only chef-server, using chef-solo with berks or
use server with berks.

What stopped you? What do you choose?

--
Best regards,

CVision Lab System Administrator
Vladmir Skubriev

I'am very interested in "How you are resolv situations when cookbook deleted from berksfile, but but remains on the server ?

How to clean up all cookbooks on the chef-server ?

In other words: "How to maintain order on the server with cookbooks, and not only with cookbooks, but also roles, databags, etc"

May be there are a common command of a knife to clean up all server from existing data and then upload a new infrastructure by knife upload and berks upload ?

-- 
Best regards,

CVision Lab System Administrator
Vladmir Skubriev


--
--
~*~ StormeRider ~*~

"Every world needs its heroes [...] They inspire us to be better than we are. And they protect from the darkness that's just around the corner."

(from Smallville Season 6x1: "Zod")

On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS




Archive powered by MHonArc 2.6.16.

§