vagrant-berkshelf | Vagrant plugin to add Berkshelf integration | Plugin library
kandi X-RAY | vagrant-berkshelf Summary
kandi X-RAY | vagrant-berkshelf Summary
Vagrant Berkshelf is a Vagrant plugin that adds Berkshelf integration to the Chef provisioners. Vagrant Berkshelf will automatically download and install cookbooks onto the Vagrant Virtual Machine.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vagrant-berkshelf
vagrant-berkshelf Key Features
vagrant-berkshelf Examples and Code Snippets
Community Discussions
Trending Discussions on vagrant-berkshelf
QUESTION
Mac OS X 10.14.5 (Mojave)
VirtualBox 6.0.10 r132072
Vagrant 2.2.5
Vagrant Box 'bento/ubuntu-16.04' version '201906.18.0'
- Updated VirtualBox and Vagrant.
- Destroyed and recreated the Vagrant Box.
This just started happening, I reinstalled VirtualBox and Vagrant, updated the Vagrant Box, but to no avail:
...ANSWER
Answered 2019-Aug-16 at 06:45there is a line in your output that hints what is wrong
QUESTION
I have had a number of issues recently with vagrant-berkshelf
not syncing Chef cookbooks on an existing machine reliably. And, basically, when doing research on workarounds, I see something like:
vagrant-berkshelf is deprecated, use Test Kitchen instead.
My use case is that I have Vagrantfile
s, used to build VMs and DigitalOcean droplets, that are hand-written and only use Chef to provision the VMs. I am most definitely approaching Chef as a user, not an author or tester of cookbooks.
So, I am in a case of Vagrant -> Chef
, not Chef -> Vagrant
.
When looking at Kitche-Vagrant, I see that:
The kitchen-vagrant driver for Kitchen generates a single Vagrantfile for each instance of Kitchen in a sandboxed directory..
My question is: if my workflow relies on hand-written, complex, Vagrantfiles, can I continue to use Chef as a provisioner without having to rely on vagrant-berkshelf
?
Some of the possible alternatives I see are:
mangle Test Kitchen configuration to work with my exiting Vagrantfile. I fear that this is not the intent of this tool and will not end well.
use
chef.cookbooks_path
attribute in vagrant and let it take the place of vagrant-berkshelf.switch out provisioners and use say Vagrant->Ansible.
The Vagrantfile below is somewhat simplified, but the gist is that the Vagrantfile is in charge and Chef is just used to provision.
...ANSWER
Answered 2018-Feb-28 at 21:45It isn't deprecated per se, but it does no longer have a maintainer and does highly recommend against its use. There is no replacement for the workflow you describe. Sorry. If you are interested in taking over as maintainer, I can put you in contact with the team.
QUESTION
Within the following code's creates
directive, the specified value contains a (actually, more than one) wildcard.
ANSWER
Answered 2017-Sep-20 at 04:27You would use a not_if
or only_if
guard clause. The creates
property is just a helper for not_if { ::File.exist?(the_path) }
. In this case what you probably want is either not_if "vagrant plugin list | grep #{plugin}"
or the slightly cleaner (IMO) not_if { shell_out!('vagrant plugin list').stdout.include?(plugin) }
.
QUESTION
TL:DR; How does one import the chef-manage ssl certificate into chromium/firefox? Is /var/opt/opscode/nginx/ca/[fqdn].crt the appropriate file?
I'm generating a chef-server machine using vagrant, vagrant-berkshelf, and the chef-server supermarket cookbook. Once complete, I'm running chef-server-ctl install chef-manage chef-server-ctl reconfigure chef-manage-ctl reconfigure ...in order to install and setup the chef-manage addon. With the addon installed, I attempt to import the generated certificate at /var/opt/opscode/nginx/ca/[fqdn].crt into the browser (chromium/firefox) through the browser's certificate management interface, but I receive the following error(s):
Chromium:
Certificate Import Error Invalid or corrupt file.
Firefox:
This personal certificate can’t be installed because you do not own the corresponding private key which was created when the certificate was requested.
The file looks like a ssh public key but with "BEGIN / END CERTIFICATE" instead of "BEGIN / END RSA PUBLIC KEY". The format and content of the cert seems correct.
Any tips, hints, or suggestions would be greatly appreciated!
- K.E.
ANSWER
Answered 2017-Jul-02 at 03:18You're looking in the "TLS Key" sections of each config path, what you want to find is the root CA options. For Firefox under macOS you can find it under Preferences -> Advanced -> Certificates -> View Certificates -> Servers -> Add Excetion. Granted you can also just navigate to the page and on the TLS warning it will ask if you want to add an exception, which seems easier. You could also just set up a real TLS certificate from LetsEncrypt or similar (use the DNS validation method).
QUESTION
I want to spin up a Vagrant box and provision a LAMP stack using chef-solo and berkshelf. Here's the steps I take:
...ANSWER
Answered 2017-Feb-12 at 19:54As shown in the command it is trying to run, the issue isn't the chef
executable, it's berks
. Remove the copy of that you installed via gems and makes sure the copy from ChefDK is working.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vagrant-berkshelf
Install the latest version of ChefDK
Install the Vagrant Berkshelf plugin:
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page