berkshelf

Upgrade from Vagrant 1.3.5 to 1.4.3. Fails on `vagrant-berkshelf` plugin

坚强是说给别人听的谎言 提交于 2020-01-23 16:05:10
问题 Note - this question is also posted in https://groups.google.com/forum/#!topic/vagrant-up/aZOs1YXmvhI Setup C:\Users\Kevin>vagrant -v Vagrant 1.4.3 C:\Users\Kevin>VBoxManage -version # VirtualBox version 4.3.10r93012 C:\Users\Kevin>vagrant plugin list vagrant-berkshelf (2.0.0) vagrant-omnibus (1.3.1) vagrant-vbguest (0.10.0) C:\Users\Kevin>ruby -v ruby 1.9.3p484 (2013-11-22) [i386-mingw32] EDIT I just installed & updated my %PATH% to use ruby 2.0, but still having the same issue. On a Windows

Kitchen/berkshelf wants old gem?

半世苍凉 提交于 2020-01-06 14:14:31
问题 I want to test some changes to a cookbook, so I did what I used to do, but the result was far from normal: $ ../gem-sucks/bin/kitchen converge -----> Starting Kitchen (v1.2.1) !!!!!! The `berkshelf' gem is missing and must be installed or cannot be properly activated. Run `gem install berkshelf` or add the following to your Gemfile if you are using Bundler: `gem 'berkshelf'`. >>>>>> ------Exception------- >>>>>> Class: Kitchen::UserError >>>>>> Message: Could not load or activate Berkshelf

Chef Berks Install (Berkshelf) Timesout contacting Artifactory repository (Faraday Timeout / Actor Crashed)

不羁的心 提交于 2020-01-06 05:59:53
问题 Artifactory 5.8.4 Professional Chef Development Kit Version: 1.1.16 chef-client version: 12.17.44 delivery version: master (83358fb62c0f711c70ad5a81030a6cae4017f103) berks version: 5.2.0 kitchen version: 1.14.2 In Artifactory, I have this repository (virtual): avirtual-repo Berksfile contains : # cat Berksfile # vim: ft=berksfile.ruby: source "http://artifactory-server:8181/artifactory/api/chef/avirtual-repo" cookbook "top_level_cookbook_name", ">= 0.0.0" When, I'm running berks install , it

Vagrant Berkshelf - Shelf Path?

微笑、不失礼 提交于 2020-01-04 02:20:29
问题 Is it possible to set the path where the berkshelf plugin puts the cookbooks it installs? (As in the .berkshelf folder) I am running Windows 7. I am currently trying to install a mysql server using an opscode cookbook to a vm and here at work they have the %HOMEDRIVE% system variable set to a network drive. So when .berkshelf starts at the beginning of the Vagrantfile, it pushes the cookbooks to the network drive and it causes it to be slow and well, its not where it should be. Is there a fix

How do I get chef cookbooks to be downloaded in Unix format on Windows?

心已入冬 提交于 2019-12-25 06:59:06
问题 I'm using Vagrant, Chef solo and berkshelf to run up a Linux VM on Windows 7 using VirtualBox. Cookbooks are downloaded from git and arrive with windows line endings. One of these is a Perl script, which is then uploaded to the vm and executed. However it fails because the first line is #!/usr/bin/perl and the Linux VM sees this as the command #!/usr/bin/perl^M How can I configure whichever tool needs it (probably Chef?) to download .pl files in Unix format? 回答1: Well, it seems it's too late

Chef: private supermarket cookbook directly on server

十年热恋 提交于 2019-12-25 01:43:34
问题 I have a cookbook which is available on a private chef supermarket and I have 4 chef servers which need this cookbook to be available so that corresponding nodes can consume it. We can use berks install and berks upload multiple times to achieve this. Is there a simpler way to do this? If it is not possible, why does chef not allow this? 回答1: if you have 4 different chef servers, then i assume that you are using 4 different keys for authentication when you interact with the chef server. this

Use Berkshelf with custom CA certificate

喜你入骨 提交于 2019-12-24 15:42:30
问题 I have a custom Chef server on premises with a TLS certificate that is signed by our own CA server. I added the CA certificate to .chef/trusted_certs and now knife ssl verify works fine. But when I try to upload cookbooks using Berksfile I run into the following error: $ berks upload E, [2016-03-26T15:02:18.290419 #8629] ERROR -- : Ridley::Errors::ClientError: SSL_connect returned=1 errno=0 state=error: certificate verify failed E, [2016-03-26T15:02:18.291025 #8629] ERROR -- : /Users/chbr/

How to use Berkshelf to manage Organization repo?

坚强是说给别人听的谎言 提交于 2019-12-23 09:48:30
问题 I'm a huge fan of Berkshelf and I've released few community cookbooks using it and its awesome. Now, I'm starting a new chef project and I went ahead with Berkshelf for this too. But I'm finding some confusions/difficulties using it for the project. Following is in the Berksfile: site :opscode cookbook 'mediawiki', github: 'millisami/chef-mediawiki' cookbook 'sp-mediawiki', path: 'site-cookbooks/sp-mediawiki' I've generated my application cookbook inside the site-cookbooks folder. When I do

Why can't chef resolve my cookbooks?

梦想与她 提交于 2019-12-22 01:38:03
问题 Intro I am learning Chef to automate the server management at work. I downloaded chefdk 3.0 from here and now I am trying to build my first cookbook using chef. Important I am using this in a Windows environment for testing purpose, I do expect it to fail since Windows does not have iptables, but I do not expect it to fail saying that it can't find the cookbook. I've tried using Windows cookbook and it works. The problem I am able to create the cookbook and run it, but I am not able to

I have installed chef-dk and started using berkshelf but berks upload failed

这一生的挚爱 提交于 2019-12-18 04:55:19
问题 I have installed chef client 12.0.3 , on top of it I have install chef-dk version 0.3.5 but why chef-dk is installing chef client version Chef: 11.18.0.rc.1 Unable to Upload cookbooks to chef server berks shelf list is working but berks upload failed Error: E, [2015-01-08T04:58:36.707534 #22533] ERROR -- : Ridley::Errors::ClientError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed E, [2015-01-08T04:58:36.708931 #22533] ERROR -- : /opt/chefdk