kandi X-RAY | chef_solo Summary
kandi X-RAY | chef_solo Summary
chef_solo
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Helper method to match value .
chef_solo Key Features
chef_solo Examples and Code Snippets
Community Discussions
Trending Discussions on chef_solo
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 am new to Vagrant. I am trying to get a suitable developement envirement in order to create a symfony project but for some reason, I can't seem to get this working. What ever machine i build i always get stuck at the "SSH auth method: private key" line.
I made a lot of reading in the past 2 days and this problem seems to happend for various reasons. I tryed everything on satck overflow but just can't seem to pin point what is causing my setup to fail.
I am on my laptop that has windows 10. I have VirtualBox 6.0.8 and Vagrant 2.2.4.
I tryed 4 diffrent boxes including one I builded using Chef and a more generic box that suposidly would work (hashicorp/precise64)
So I am confident the problem is somewhere else that in the vagrantfile.
I have virtualization active in my BIOS ... cheked twice.
I tryed using the git console, the windows cmd with and without admin permission as well as powershell (Just in case) and got the same result.
ssh-config says the following:
...ANSWER
Answered 2019-May-27 at 01:20After almost 4 days at this, i finally got it working ... My hard drive drop dead so I had to replace it and reinstall windows and all my stuff. First thing I did was try vagrant and virtualbox again. It worked on the first try. I suspect that there was something wrong with VirtualBox and the network (meaning my physical interfaces). Unfortunately, that's all I can say about it since I never got to the bottom of this problem. If like me, you tried everything and you still have the same problem I had, you should take a look at your network. I am not gona tell you to reinstall windows ... that would be insane ... But something somewhere was broken and now everything works as expected. Weird but true!
QUESTION
error: Error executing action `install` on resource 'windows_feature[AD-Domain-Services]'
^ this happens on all windows features when installing them via windows_feature resource on windows server 2016.
Chef version:
...ANSWER
Answered 2018-Nov-27 at 14:31This is some working code we use to install a selection of Windows Features:
QUESTION
I'm writing a wrapper cookbook for nexus3 wherein I override the default attributes like so in the attributes/default.rb
file of my cookbook
ANSWER
Answered 2018-Jun-11 at 13:31You mention your are overriding the attributes but your code indicates you are setting those attributes to the default
level. You should review the Attribute Precedence in Chef to understand what default
means exactly. In addition, inside the attributes file you don't need to prefix with node
just use default
::
QUESTION
I'm getting insecure platform and sni missing warnings while running pip install. I've been trying to follow the instructions suggested in the error messages below without luck:
https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2
I wrote up a small Vagrant file & Chef cookbook to demonstrate the issue and maybe get some help. The warnings show up before every install of a pip package. I've also tried various combos of pip install options and varying the version pip (8.1.2 vs 9.0.1). Any help appreciated.
Public GitHub Repo containing the code below: https://github.com/marc-swingler/urllib_issue
Requirements: Vagrant and VirtualBox
To Run: vagrant up
UPDATE:: Found this thread https://github.com/pypa/pip/issues/4098
Turns out pip 9.0.1 doesn't play nice due to libs that come bundled with it. Also, install ndg-httpsclient rather than urllib3 and/or requests. The apt packages mentioned in the user-guide are not required, and no need to build from scratch, you can use wheels. Once ndg-httpsclient is installed the warnings go away and additional pip installs go smoothly. I also have a version of this where I bootstrap pip with the apt python-pip package that works. (I'll post it if anyone is interested.) Apt installs pip v1.5.4 initially. The script then updates to pip 8.1.2 and proceeds similarly to the code below. Just requires removing the "--disable-pip-version-check" option when upgrading pip.
Vagrantfile:
...ANSWER
Answered 2017-Sep-28 at 07:20As mentioned above I found a solution. https://github.com/marc-swingler/urllib_issue
QUESTION
I have a windows_package
resource that installs jdk 8 on a windows machine and it looks like this:
ANSWER
Answered 2017-Aug-07 at 04:19Guard clauses are a core feature available on all resources, so there is nothing specific to windows_package
to find. You can find detailed info on not_if
, only_if
, and guard_interpreter
in the Chef docs.
QUESTION
I want to test my cookbooks on different environments using Vagrant.
As I've found, there are chef-client and chef-solo provisioners, used to respectively download cookbooks from chef-server
and to serve cookbooks locally.
I want to provide Vagrantifle
inside each cookbook in order to provide way to test it for all knife
developers. If cookbook was standalone, I'd just use chef-solo
provisioner, but what if it has (multiple) dependencies of cookbooks stored on chef-server
?
What's the best idea to resolve this problem:
- Download all cookbooks locally and copy it to Vagrant
- Push only tested cookbook and download rest of them from chef-server
What are advantages and disadvantages? How should I test my cookbooks on different systems?
...ANSWER
Answered 2017-Jul-21 at 19:27This is indeed what Test Kitchen is for. It has a driver for Vagrant, or you can use almost any other VM/cloud system imaginable via another driver plugin. It integrates with Berkshelf and the Policyfile system to handle dependency management, so you would use one of those (which hopefully you already are).
QUESTION
With the following software versions installed: Berkshelf - 2.0.18 Ruby - 2.2.2 Vagrant - 1.9.3 test-kitchen - 1.15.0 kitchen-vagrant - 1.1.0 Chef Server API version - 11.0.2
I am attempting to run test kitchen on my local system. In doing so, I have a berksfile that points to a chef_api :config with a single recipe apt
...ANSWER
Answered 2017-Apr-13 at 23:44Berkshelf 2.0 is very old, the current version is 5.x. We only support Berkshelf installed via ChefDK so please remove all existing copies and then install via the normal ChefDK installers.
QUESTION
I'm stumped. I want to change the cache location. The default is in the user profile temp folder; it makes for a VERY long path on Windows. I have looked over all the docs; and I can't seem to figure this out.
Here I see that I can specify client.rb
settings on the chef-solo
provisioner.
and here I see that the cache path is a setting in the client.rb
specified by cache_path
.
This leads me to believe that I should be able to:
ANSWER
Answered 2017-Mar-29 at 23:37You can't, this is deeply controlled by Test Kitchen. Why do you think you need to change this?
QUESTION
I have created some cookbooks in a repository which are executed in instances in AWS. I manually create an EBS volume in AWS at location dev/xvdb
and then mount it using the following chef code:
ANSWER
Answered 2017-Mar-19 at 19:10Add something like only_if { node['ec2'] }
so it only converges that resource on actual EC2 machines. You can also use stuff from node['cloud']
or similar to check, or if you wanted to make it completely generic somehow, only_if { ::File.exist?('/dev/xvdb') }
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install chef_solo
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
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