Berkshelf with own modified cookbooks


#1

Hey guys,

I’m using Berskhelf with a custom version of cassandra (0.2.5) cookbook. For example, I’ve added dependancies in the “metadata.rb”.
When I install the cookbook, berks uses my version except when it generates the graph of dependancies :

Fetching ‘cassandra’ from source at …/…/custom_versions/cookbooks/cassandra

D, [2014-10-19T11:25:33.753038 #47923] DEBUG – : DEPENDENCIES
D, [2014-10-19T11:25:33.753068 #47923] DEBUG – : apt
D, [2014-10-19T11:25:33.753088 #47923] DEBUG – : cassandra
D, [2014-10-19T11:25:33.753107 #47923] DEBUG – : path: …/…/custom_versions/cookbooks/cassandra

D, [2014-10-19T11:25:33.753228 #47923] DEBUG – :
D, [2014-10-19T11:25:33.753245 #47923] DEBUG – : GRAPH
D, [2014-10-19T11:25:33.753265 #47923] DEBUG – : apt (2.6.0)
D, [2014-10-19T11:25:33.753283 #47923] DEBUG – : boost (0.2.0)
D, [2014-10-19T11:25:33.753300 #47923] DEBUG – : build-essential (>= 0.0.0)
D, [2014-10-19T11:25:33.753319 #47923] DEBUG – : build-essential (2.1.2)
D, [2014-10-19T11:25:33.753337 #47923] DEBUG – : cassandra (0.2.4)
D, [2014-10-19T11:25:33.753372 #47923] DEBUG – : apt (>= 0.0.0)
D, [2014-10-19T11:25:33.753390 #47923] DEBUG – : install_from (>= 0.0.0)
D, [2014-10-19T11:25:33.753407 #47923] DEBUG – : iptables (>= 0.0.0)
D, [2014-10-19T11:25:33.753423 #47923] DEBUG – : java (>= 0.0.0)
D, [2014-10-19T11:25:33.753440 #47923] DEBUG – : metachef (>= 0.0.0)
D, [2014-10-19T11:25:33.753456 #47923] DEBUG – : runit (>= 0.0.0)
D, [2014-10-19T11:25:33.753473 #47923] DEBUG – : thrift (>= 0.0.0)
D, [2014-10-19T11:25:33.753492 #47923] DEBUG – : volumes (>= 0.0.0)

I can use my own name for the cookbook, but if there is a better way tell me.

Thanks !

Cyril SCETBON


#2

Sounds like it could be a bug with berks? I’d suggest checking if there is an open issue on this, and creating one if not.


Daniel DeLeo

On Sunday, October 19, 2014 at 2:29 AM, Cyril Scetbon wrote:

Hey guys,

I’m using Berskhelf with a custom version of cassandra (0.2.5) cookbook. For example, I’ve added dependancies in the “metadata.rb”.
When I install the cookbook, berks uses my version except when it generates the graph of dependancies :

Fetching ‘cassandra’ from source at …/…/custom_versions/cookbooks/cassandra

D, [2014-10-19T11:25:33.753038 #47923] DEBUG – : DEPENDENCIES
D, [2014-10-19T11:25:33.753068 #47923] DEBUG – : apt
D, [2014-10-19T11:25:33.753088 #47923] DEBUG – : cassandra
D, [2014-10-19T11:25:33.753107 #47923] DEBUG – : path: …/…/custom_versions/cookbooks/cassandra

D, [2014-10-19T11:25:33.753228 #47923] DEBUG – :
D, [2014-10-19T11:25:33.753245 #47923] DEBUG – : GRAPH
D, [2014-10-19T11:25:33.753265 #47923] DEBUG – : apt (2.6.0)
D, [2014-10-19T11:25:33.753283 #47923] DEBUG – : boost (0.2.0)
D, [2014-10-19T11:25:33.753300 #47923] DEBUG – : build-essential (>= 0.0.0)
D, [2014-10-19T11:25:33.753319 #47923] DEBUG – : build-essential (2.1.2)
D, [2014-10-19T11:25:33.753337 #47923] DEBUG – : cassandra (0.2.4)

D, [2014-10-19T11:25:33.753372 #47923] DEBUG – : apt (>= 0.0.0)
D, [2014-10-19T11:25:33.753390 #47923] DEBUG – : install_from (>= 0.0.0)
D, [2014-10-19T11:25:33.753407 #47923] DEBUG – : iptables (>= 0.0.0)
D, [2014-10-19T11:25:33.753423 #47923] DEBUG – : java (>= 0.0.0)
D, [2014-10-19T11:25:33.753440 #47923] DEBUG – : metachef (>= 0.0.0)
D, [2014-10-19T11:25:33.753456 #47923] DEBUG – : runit (>= 0.0.0)
D, [2014-10-19T11:25:33.753473 #47923] DEBUG – : thrift (>= 0.0.0)
D, [2014-10-19T11:25:33.753492 #47923] DEBUG – : volumes (>= 0.0.0)

I can use my own name for the cookbook, but if there is a better way tell me.

Thanks !

Cyril SCETBON


#3

Thanks. I’m gonna do it.

Cyril SCETBON

On 21 Oct 2014, at 00:40, Daniel DeLeo dan@kallistec.com wrote:

Sounds like it could be a bug with berks? I’d suggest checking if there is an open issue on this, and creating one if not.


Daniel DeLeo

On Sunday, October 19, 2014 at 2:29 AM, Cyril Scetbon wrote:

Hey guys,

I’m using Berskhelf with a custom version of cassandra (0.2.5) cookbook. For example, I’ve added dependancies in the “metadata.rb”.
When I install the cookbook, berks uses my version except when it generates the graph of dependancies :

Fetching ‘cassandra’ from source at …/…/custom_versions/cookbooks/cassandra

D, [2014-10-19T11:25:33.753038 #47923] DEBUG – : DEPENDENCIES
D, [2014-10-19T11:25:33.753068 #47923] DEBUG – : apt
D, [2014-10-19T11:25:33.753088 #47923] DEBUG – : cassandra
D, [2014-10-19T11:25:33.753107 #47923] DEBUG – : path: …/…/custom_versions/cookbooks/cassandra

D, [2014-10-19T11:25:33.753228 #47923] DEBUG – :
D, [2014-10-19T11:25:33.753245 #47923] DEBUG – : GRAPH
D, [2014-10-19T11:25:33.753265 #47923] DEBUG – : apt (2.6.0)
D, [2014-10-19T11:25:33.753283 #47923] DEBUG – : boost (0.2.0)
D, [2014-10-19T11:25:33.753300 #47923] DEBUG – : build-essential (>= 0.0.0)
D, [2014-10-19T11:25:33.753319 #47923] DEBUG – : build-essential (2.1.2)
D, [2014-10-19T11:25:33.753337 #47923] DEBUG – : cassandra (0.2.4)

D, [2014-10-19T11:25:33.753372 #47923] DEBUG – : apt (>= 0.0.0)
D, [2014-10-19T11:25:33.753390 #47923] DEBUG – : install_from (>= 0.0.0)
D, [2014-10-19T11:25:33.753407 #47923] DEBUG – : iptables (>= 0.0.0)
D, [2014-10-19T11:25:33.753423 #47923] DEBUG – : java (>= 0.0.0)
D, [2014-10-19T11:25:33.753440 #47923] DEBUG – : metachef (>= 0.0.0)
D, [2014-10-19T11:25:33.753456 #47923] DEBUG – : runit (>= 0.0.0)
D, [2014-10-19T11:25:33.753473 #47923] DEBUG – : thrift (>= 0.0.0)
D, [2014-10-19T11:25:33.753492 #47923] DEBUG – : volumes (>= 0.0.0)

I can use my own name for the cookbook, but if there is a better way tell me.

Thanks !

Cyril SCETBON