chef-repo | My personal chef-repo | Infrastructure Automation library
kandi X-RAY | chef-repo Summary
kandi X-RAY | chef-repo Summary
This is my working chef-repo - used primarily with vagrant. Right now it's focused on drupal development.
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 chef-repo
chef-repo Key Features
chef-repo Examples and Code Snippets
Community Discussions
Trending Discussions on chef-repo
QUESTION
I need help about gitlab runner. I would need to clone an other repository of gitlab where the runner is launched.
For example: CI runner runner-repo-a executed in the repo-a and I need to clone repo-b in runner-repo-a.
Now I have:
...ANSWER
Answered 2020-Aug-18 at 13:48This error could be due to the https
protocol being used in your environment. An easier way would be to just use the SSH
version of git clone
.
You need to generate an SSH key in the machine from which you are cloning and add that key into GitLab. Please refer this to generate SSH Key , once that is done, refer this to understand how the rsaxxxx.pub
is to be added to into GitLab.
QUESTION
I have thus far successfully installed Chef-server, chef--manage (UI bit), got knife ssl check
working.
Now, I am running the below command
...ANSWER
Answered 2020-May-21 at 10:06The error is reported here:
ec2_server_create.rb:1185:in `create_key_pair':
you are also supposed to specify a keypair to ssh into EC2, like that:
QUESTION
Hi I have installed the chef server with the below commands.
...ANSWER
Answered 2020-May-20 at 12:00The error:
QUESTION
I'm trying to make a cookbook that has some dependencies, but it doesn't work
/recipe
ls
default.rb
Recipe:
...ANSWER
Answered 2019-Dec-20 at 09:30i have a feeling that you are confusing something, since the title of your question mentions chef-solo
when you are really using chef-zero
(--local-mode
).
you should definitely favor chef-zero over chef-solo (but i won't get into the reasons why).
in both cases (using chef-zero or chef-solo), you will have to download all the cookbooks and make verify chef-client knows where are the cookbooks located.
if you ase using chef-zero, here are some references:
Local mode does not require a configuration file, instead it will look for a directory named
/cookbooks
and will setchef_repo_path
to be just above that. (Local mode will honor the settings in a configuration file, if desired.) If theclient.rb
file is not found and no configuration file is specified, local mode will search for aconfig.rb
file.
chef_repo_path
: The path to the chef-repo containing cookbooks and other files, such as environments or data bags, when running Chef Infra Client in local mode.
cookbook_path
: The sub-directory for Chef Infra Client cookbooks. This value can be a string or an array of file system locations, processed in the specified order. The last cookbook is considered to override local modifications.
since i see that you are using berkshelf, you can use vendor sub-command to download all the cookbooks dependencies and place them in the same directory. then, have a custom configuration for chef-client, that sets the value of cookbook_path
to the same directory which you used in conjunction with berks vendor
, and finally execute chef-client.
QUESTION
Cookbook: https://github.com/tkidd77/devops-project/tree/master/chef-repo/cookbooks/hello_world
My unit test:
...ANSWER
Answered 2018-Sep-17 at 21:59That should be expect(chef_run).to touch_file('C:\inetpub\wwwroot\iisstart.htm')
. You only use expect { ... }
with raise_error
and things like it, most matches use expect(...)
as a normal call. Also you had an extra space after touch_file
. method (args)
is not allowed in Ruby (or at least it is allowed and doesn't do what you think it does).
QUESTION
I'm tyring to get off the ground with Chef Provisioning and am trying to run my first example. I'm a bit lost as what I thought would be an easy example is not working for me, clearly there is another step that I need to follow in order to proceed further.
The versions of the software in use are:
...ANSWER
Answered 2018-Sep-05 at 16:05After realising the the chef-provisoning-vagrant was a ruby gem I was able to check if it was installed. I checked my gem library and it was not present, only aws and fog variants were there.
I ran the command chef gem install chef-provisioning-vagrant
which then installed the provisioner and it worked better after that. I guess this provisioner has been removed from the ChefDK since the book I was looking at was written.
QUESTION
I'm trying to use Chef on CentOS7 and I'm at the beginning ... following the tutorial I0m trying to install apache using this recipe.
...ANSWER
Answered 2018-Aug-13 at 05:38On CentOS / RHEL etc (and on Fedora) the package name for Apache is "httpd".
Alternatively, there is a standard cookbook for installing and configuring Apache2:
It is fairly sophisticated, and includes recipes for configuring a number of common Apache modules.
QUESTION
i am getting this issue when trying to create an environment.
root@pranjal361:/home/user/chef/chef-repo/environments# knife environment from file dev.rb
ERROR: knife encountered an unexpected error
This may be a bug in the 'environment from file' knife command or plugin
Please collect the output of this command with the -VVV
option before filing a bug report.
Exception: NoMethodError: undefined method `desciption' for #
I had upgraded my cookbook version from 0.1.0 to 0.2.0.
I had provided prod dependency version as 0.2.0 in the environment .rb file and its getting updated.
But for the dev environment created i had given 0.1.0 which i present in the chef server.
Chef Commands Not sure where i am doing wrong.
Any ideas on this.
...ANSWER
Answered 2018-Jul-29 at 05:45The error is not related to cookbook versions, as you can see from the message: NoMethodError: undefined method 'desciption'
. You misspelled description
.
QUESTION
I'm trying to install java jdk 8 onto an ubuntu 16.04 instance using chef-run. Although when it attempts to install I get Failed to converge target
, when I open the logs I have the following:
ANSWER
Answered 2018-Jun-22 at 03:34This is a bug in ChefDK 3.0 when using policy tarball exports. It will be fixed in ChefDK 3.1 next week. In the mean time, add this to your knife.rb
config file:
QUESTION
I found this error after i put a zip file into the cookbook and then uploaded it into the server. Can someone suggest me the right solution for this error...
...ANSWER
Answered 2018-Feb-28 at 20:31You should not use Chef to host any 'big' files. Setup additional HTTP server or use off site storage like S3.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install chef-repo
Run librarian-chef install to grab the cookbooks
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