[chef] Please clarify berks install


Chronological Thread 
  • From: "Fouts, Chris" < >
  • To: " " < >
  • Subject: [chef] Please clarify berks install
  • Date: Mon, 18 May 2015 14:56:33 +0000
  • Accept-language: en-US

When I do a berks install –c $BERKSHELF_PATH/config.json, and my config file looks like this, I understand that berks will fetch the cookbooks “from” the chef_server_url and install them “to” my $BERKSHELF_PATH/cookbooks directory correct?

 

{

  "chef":{

    "chef_server_url" : "https://chefserver/organizations/berks-api",

    "validation_client_name" : "berks-api-validator",

    "validation_key_path" : ".chef/chefserver-berks-api-validator.pem",

    "client_key" : ".chef/jenkins.pem",

    "node_name" : "jenkins"

  },

  "cookbook":{

    "copyright":"Build Team",

    "email":" "

  },

  "ssl":{

    "verify":false

  }

}

 

My Berksfile has

source http://chefserver:26200

cookbook ‘common-log’

 

My metadata.rb has

depends ‘common-log’, ‘~> 0.1.1’

 

 

I ask because it fails saying

 

Missing artifacts: common-log~> 0.1.1

 

But if I do “knife cookbook list” where my knife.rb file points to the SAME chef_server_url, I see

 

common-log                               0.1.2

 

So why won’t berks install fetch “common-log v0.1.2” from my Berks API server?

 

Chris




Archive powered by MHonArc 2.6.16.

§