Questions tagged [chef-client]

20 questions
3
votes
3 answers

Chef apt_repository started failing with SSL verification errors

From last 2 days we started seeing chef execution failures are happening related to apt_repository resource. Seen similar failures with chef-client execution too Chef-solo version: 12.19.36 OS: Ubuntu v18 & Ubuntuv14 See below error from chef-solo…
1
vote
1 answer

When I am bootstrapping a node, I'm getting this error:

When I am bootstrapping a node, I'm getting this error: /opt/chef/embedded/bin/ruby; error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory I executed below command knife bootstrap 172.31.6.156…
1
vote
1 answer

symbolic link not working with chef recipe

I want to create symbolic link only if its not present I have written below recipe link '/home/user1/veera' do to '/usr/local/veera-10.0' only_if {test -L /home/user1/veera} end I tried below condition in recipe only_if {test -L…
AWS_Lernar
  • 627
  • 2
  • 9
  • 26
1
vote
0 answers

Unable to connect from chef-client to chef-server using packer chef-client provisioner

I have been trying to install chef-client using packer in azure vm windows 2016 datacenter image but after creating image i checked in chef workstation that the image with chef-client configuration machine is not connected to chef server. Is it…
1
vote
1 answer

Local edits to recipes get overwritten by chef-client execution

I am a dev tasked with making some changes to the cookbooks owned by the devops team. We don't have access to knife or the chef server. I tried to make some local changes to a recipe to try it out. But, when I run: $ sudo chef-client --log_level…
user674669
  • 10,681
  • 15
  • 72
  • 105
0
votes
0 answers

While running chef client command i am getting a warning - No config file found

While running chef client command chef-client -zr "recipe[test-cookbook::test-recipe]" I am getting the below warning. [2023-08-27T10:00:19+00:00] WARN: No config file found or specified on command line. Using command line options instead. Chef…
0
votes
0 answers

when I am running my chef-client with the code : [root@ip-172-31-33-62 cookbook]# chef-client -zr "recipe[test-cookbook::test-recipe]"

Running handlers: [2023-07-09T03:24:31+00:00] ERROR: Running exception handlers Running handlers complete [2023-07-09T03:24:31+00:00] ERROR: Exception handlers complete Infra Phase failed. 0 resources updated in 02 seconds…
Hitesh
  • 1
0
votes
0 answers

Automating chef-client

I am new to chef. I have created an AWS ec2 instance as a chef node. I bootstrapped it to the chef-server and the cookbook was uploaded to the chef server. The recipe is as under, package 'httpd' do action :install end file…
0
votes
1 answer

/opt/chef/embedded/bin/ruby: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

When I am bootstrapping a node, I'm getting this error: error :The following error occurred on 172.31.2.207: error :/opt/chef/embedded/bin/ruby: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or…
0
votes
0 answers

command chef-client --version is giving older version of chef client which is not correct

I am new to chef. recently i face the issue on one node where I am receiving error like the installed current chef-client version need to be updated. to check the current client version in node, i ran the command" chef-client --version" i got…
0
votes
0 answers

How to Run Test Kitchen on Cookbooks Directly from Chef Infra Server

I need to run the Chef Kitchen test directly from Chef Infra server without maintaining the cookbook locally. Is there a way we can configure Kitchen test to get the cookbook directly from Chef Infra server and run?
Dinuka Kavinda
  • 45
  • 1
  • 11
0
votes
0 answers

Chef-client run is failing in Windows server

Am trying to set-up Chef Infra in this manner: Chef Server (Linux), Chef Workstation (Windows), Chef Node (Windows). Chef server and chef workstation are working smooth. However, chef-client is failing on chef node with the error: 'chef-client' is…
Happy
  • 1
0
votes
1 answer

Chef Client skip bundle install on air gapped server

I am trying to install chef recipes on air-gapped server I bundled gems listed in all recipes and prepared vendor/cache archive. Copying it into the server and running /opt/chef/embedded/bin/bunlde install --local successfully installed 233 gems but…
Hassnain Alvi
  • 333
  • 6
  • 16
0
votes
0 answers

Passwordless chef client bootstrapping

I am bit familiar with Chef and its bootstrapping techniques. I am trying to bootstrap my new chef-client/node without passing password I tried below by generating a ssh key but still failing knife bootstrap MY_NODE_IP -x SERVER_ADMIN_USERNAME -i…
0
votes
1 answer

Chef Client failed without errors

I've run chef for existing cookbook, however I can't run it correctly. I've got Chef Client failed without any error.
Irina
  • 939
  • 1
  • 8
  • 26
1
2