[chef] RE: Re: Bershelf / git configuration issue?


Chronological Thread 
  • From: "Fouts, Chris" < >
  • To: " " < >
  • Subject: [chef] RE: Re: Bershelf / git configuration issue?
  • Date: Thu, 12 Mar 2015 14:56:14 +0000
  • Accept-language: en-US

Thanks Julian.

I resisted cross-posting here but I got no traction in stackoverflow. I will 
post your answer there.

You said...
"
I don't think this is going to do what you want because your Git server 
doesn't have a /universe endpoint for Berkshelf to use.

You can specify the source of cookbooks individually on the 'depends'
lines (the syntax is similar to that in a Gemfile and it's documented on 
berkshelf.com) or you can run your own supermarket internally.
"

This makes sense. I will explore specifying the git repo per cookbook in my 
Berksfile as an initial attempt, and then look into running a supermarket 
internally.

Thanks,
Chris

-----Original Message-----
From: Julian C. Dunn 
[mailto:
 
Sent: Thursday, March 12, 2015 10:43 AM
To: 

Subject: [chef] Re: Bershelf / git configuration issue?

On Thu, Mar 12, 2015 at 10:35 AM, Fouts, Chris 
< >
 wrote:
> I posted this in stackoverflow
> http://stackoverflow.com/questions/28996765/how-do-i-setup-cookbooks-i
> n-git-for-berkshelf,
> but I thought I’d post it here too.

It'd be great if you'd stick to one or the other so that the answer shows up 
in a single place.

> I’m trying to use Berkshelf, and am trying the following simple test.
>
> We have an internal git server using Gitlab, say, 
> http://git-server.domain.com. I created a "project" group, and pushed ;
> mycookbook.git repo so, according to git, the cookbook is accessible 
> via http://git-server.domain.com/project/mycookbook.git.
>
> Now I have an environment cookbook called myapp_dev, and its Berksfile 
> looks like this
>
> source "https://supermarket.chef.io";
> source "http://git-server.domain.com/project";

I don't think this is going to do what you want because your Git server 
doesn't have a /universe endpoint for Berkshelf to use.

You can specify the source of cookbooks individually on the 'depends'
lines (the syntax is similar to that in a Gemfile and it's documented on 
berkshelf.com) or you can run your own supermarket internally.

- Julian

-- 
[ Julian C. Dunn 
< >
          * Sorry, I'm    ]
[ WWW: http://www.aquezada.com/staff/julian    * only Web 1.0  ;]
gopher://sdf.org/1/users/keymaker/           * compliant!    ;]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9       ]



Archive powered by MHonArc 2.6.16.

§