Questions tagged [chef]
45 questions
24
votes
4 answers
Configure Windows Creators Update Night Light via Registry
How can the new Night Light feature in Windows 10 (Pro) Creators Update be configured via the registry?
I'd like to auto configure new/updated installations when using my configuration management tool of choice (Chef). System inspection via…
6
votes
1 answer
How to configure a firewall on Centos using Vagrant and Chef
I've created a server box using Vagrant and Chef and everything is up and running correctly. However, when the box is installed from scratch the default iptables rules are in place and so I need to disable the firewall in order to access my web…
justinhj
- 1,412
5
votes
2 answers
No write access to parent
I am facing an issue chen trying to setup an openldap server with chef.
Configuration:
Ubuntu 15.04
OpenLdap 2.4.31
Chef/OpenLdap 2.7.1
For information, when I run dkpg-reconfigure slapd (which is not an option when trying to automate the…
Jack Admin
- 151
4
votes
0 answers
Enter a Failed Docker Container with a Different Command
I have a fairly complicated docker container I'm attempting to build. As part of the build process I have I install Chef and have Chef install a number of cookbooks using Chef-Solo. I am having the cookbooks fail a certain point and need to inspect…
localhostv6
- 41
4
votes
3 answers
Should I be using vagrant destroy/up/reload/provision or something of the sort every time I want to change one of my source files?
I have recently started developing a little with vagrant and django in a vm.
To get my machine up I use vagrant up, and to destroy it I use vagrant down.
Both of these commands are time-consuming as hell, but I often need to change my source code on…
michaelsnowden
- 762
3
votes
1 answer
Creating new user using useradd ,but fails since its unable to create group in Oracle Linux 6
Below is the terminal execution
[root@machine chef-server]# useradd -s '/bin/sh' -d '/opt/chef-server/embedded' -r chef_server
useradd: Can't get unique system GID (no more available GIDs)
useradd: can't create group
[root@machine chef-server]#…
Santosh Gokak
- 131
3
votes
1 answer
How can I efficiently force VirtualBox to use /dev/shm for all VM files?
SuperUsers. I want to preserve the life of my laptop's SSD drive. I make heavy use of Vagrant, Chef, and Virtualbox. I'm using Test Kitchen w/ Vagrant to run my infrastructure code tests. I am creating and destroying VMs all day, several times a…
Jesse Adelman
- 151
- 6
3
votes
1 answer
Centralized management of app.config parts for self-hosted .NET services
What will be the best way to handle these scenarios, if they are not one-time, but regular:
Self-hosted services on a quite a bunch of machines are needed to be repointed to different database in a centralized way. So it requires changing…
Andrey Ershov
- 133
2
votes
0 answers
Error installing Chef Server on Vagrant-managed Ubuntu 14.04.2 LTS
I'm trying to set up a Chef Server on a local VM using Vagrant/VirtualBox. My Vagrantfile is:
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "dtom-chef-server"
config.vm.provision :shell, path:…
user82599
- 61
2
votes
1 answer
How to override ssh port in .kitchen.yml?
I want to be able to set which port to use for ssh forwarding when running up kitchen converge.
I added the forwarded_port lines to .kitchen.yml:
--- …
Anthony Kong
- 5,318
2
votes
3 answers
Chef tool : saying need to mention version while installing httpd
Code I have written
[root@ns1 sysadmin]# cat installstarthttpd.rb
package' httpd'
service 'httpd' do
action [:start, :enable]
end
file '/var/www/html/index.html' do
content '
…
shekhar
- 774
2
votes
0 answers
OpenSSL::SSL::SSLError while trying to run chef-server
Installed Chef server on my Ubuntu 12.04 server.
Following these instructions
Getting the following error
# chef-server-ctl test
The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to…
zabumba
- 269
- 6
- 14
2
votes
1 answer
Access Denied Error when executing VBoxManage during Test Kitchen's kitchen converge Ubuntu 22
I am encountering an error while trying to execute the kitchen converge command in Test Kitchen (v3.1.0) for my infrastructure testing. The error occurs during the creation of a virtual machine using the virtualbox provider.
Error Message:
----->…
2
votes
0 answers
How exactly do I run my first, auto-generated 'chef' cookbook on Windows?
I'm very inexperienced with Windows. I'm trying to set up Chef, such that I can avoid duplicating a bunch of "initial setup tasks" everytime I install Windows on a machine, as a developer (enable Windows Subsystem for Linux, install Chocolatey,…
ELLIOTTCABLE
- 2,708
2
votes
1 answer
Cannot copy .DLL files using cookbook_file in chef on windows
I am using chef to create setup files for a local build on windows 10 (e.g, using ChefDK with chef-client -z -o win10-setup).
I want to use cookbook_file or remote_directory to copy *.dll files which I have locally in my cookbook. I have found that…
Eric G
- 1,026