Questions tagged [chef]
Chef is an open source configuration management framework for infrastructure automation.
636
questions
0
votes
1
answer
75
views
Test Kitchen unable to run Inspec tests due to SSH Key Algorithm Error
I'm not familiar with the depths of the Test Kitchen tools as I normally use them for simple cookbook tests and generally don't run into issues.
At the moment, I'm trying to test updates to a cookbook,...
0
votes
0
answers
82
views
What does output of Chef "knife node show" command mean?
With reference to the following command:
knife node show hostname
I see output for:
Run List:
Roles:
Recipes:
What does Recipes: mean in this context? I presume it means that these are the recipes ...
0
votes
2
answers
280
views
rb_sys_fail_path_in(rb_file_s_rename, (filepath1, filepath2)- errno == 0 error when running a newly installed version of chef
I have 1 box that seems to not want to run chef, while I have 5 other identical boxes that are working just fine using the same rhel and chef versions. On the non-working box, Chef runs correctly when ...
3
votes
1
answer
477
views
What are the commands for restarting a service after a file is changed in Chef?
I am unable to figure out the correct solution in that if only when a file is updated, i.e. a conf file of a service, then the service is restarted (stopped and then started).
This is what I have in ...
1
vote
0
answers
89
views
Is there a way to pass a role json file to the chef-run utility in chef-workstation?
The chef-run executable provided in chef workstation allows you to run adhoc configuration tasks. The documentation also states that you can run commands, recipes and even cookbooks on remote machines ...
2
votes
1
answer
106
views
How can chef run a command as a username?
In a Linux system, it is feasible to do
sudo systemctl start my_server
sudo -u ubuntu command ...
so that the command is run as the username ('ubuntu' in this case). However, and when I run chef with ...
0
votes
2
answers
137
views
Using Configuration management tools to synchronize large files
We are looking into using a configuration mangement tool (like Salt or Puppet) to automate what is currently a lot of manual work. One requirement is that we have to distribute rather large files / ...
0
votes
1
answer
65
views
Which server configuration management tool to use for my personal nextcloud deployment [closed]
I want to deploy a personal nextcloud application.
I already have setup nextcloud using docker-compose, which tool should I use for server configuration management?
I have the following things to ...
3
votes
2
answers
2k
views
How to add a windows node for chef
I have 3 servers
Following this guide for the chefmaster and chefworkstation
https://www.itzgeek.com/how-tos/linux/centos-how-tos/setup-chef-12-centos-7-rhel-7.html
chefmaster 192.168.1.200 ...
1
vote
0
answers
337
views
How to upgrade Ruby Bundle version in AWS Opsworks
I have a project running on AWS Opsworks, which has current bundler version of 1.5.3 on Ruby 2.2.2.
i want to upgrade the bundle version to 1.17.3
but when i try to do it i am getting this error
...
0
votes
1
answer
295
views
chef generate cookbook asking yes or no repeatedly
I'm trying to create a chef cookbook using the following command:
chef generate cookbook cookbooks/create_files
on the following versions of chef
Chef Workstation version: 0.10.41
Chef Infra Client ...
0
votes
1
answer
1k
views
chef: The authenticity of host 'x.x.x.x' can't be established
I'm running knife bootstrap command I'm getting following error
Connecting to x.x.x.x WARN: [SSH] PTY requested: stderr will be merged
into stdout The authenticity of host 'x.x.x.x ()' can't be
...
0
votes
1
answer
304
views
Chef: Kitchen Converge fails on Windows 10 Guest using Vagrant FileTransporter Error
As described in the bug I created here:
https://github.com/test-kitchen/kitchen-vagrant/issues/407
When I perform a kitchen converge on a freshly created Windows 10 box, it connects and begins ...
1
vote
0
answers
1k
views
Using Chef for setting Windows Active Directory GPO policies on domain controller
I am looking to use Chef to automate the setting of active directory controlled group policy settings (typically on the primary PDC per forest).
I cant find any specific AD GPO functions, on the ...
2
votes
1
answer
271
views
Chef Knife command - PowerShell "query session" failing with return code 1, although command is executed successfully
I am facing a peculiar problem in executing chef knife commands for PowerShell remotely.
Command is executed successfully, however the return code is 1 with an error.
> %CPath% && knife ...