Questions tagged [chef]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
132 views

linux knife (chef) proxy

I have chef_server_url 'https://192.168.1.1/organizations/orgname' in my .chef/knife.rb along with knife[:bootstrap_proxy] = "http://172.16.1.254:3128/" knife[:http_proxy] = "http://172.16.1.254:...
0
votes
0answers
67 views

Chef install fails while using wrapper cookbook

I am writing a wrapper cookbook (lamp) for the same purpose I also written an another cookbook(lamp_app) to use the recipes from wrapper cookbook. I face an issue regarding the dependency list present ...
0
votes
0answers
31 views

Chef-server-ctl test fails with Ldap Integration

After I enabled Ldap on my chefHA frontend, chef-server-ctl test failed with the below errors. Does anyone know what this could mean or how I could possible disable these tests as it's not affecting ...
1
vote
0answers
74 views

I have ruby installed greater than 2.3.0 but it says requires greater than 2.3.0 for i18n to be installed

I have ruby version 2.5.1p57 when ran ruby -v command. While installing a cookbook which requires i18n, it throws error i18n requires Ruby version >= 2.3.0. Though the ruby version is greater ...
1
vote
0answers
127 views

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 ...
0
votes
1answer
44 views

How to solve “Fog::Compute::AWS::Error: RequestLimitExceeded => Request limit exceeded.” when executing a Chef cookbook

I am not an expert in Chef. I am trying to deploy a network infrastructure on AWS. When I execute the cookbook that I uploaded to my Chef Server using knife, a lot of API requests are made to AWS to ...
0
votes
1answer
193 views

How do you improve the performance of the ChefDK on Windows 10?

In the past, I've installed the ChefDK on Windows 7 and it ran fairly quickly. Recently, I installed a new version of the ChefDK on Windows 10 Professional 64-bit on a powerful laptop, yet virtually ...
0
votes
1answer
26 views

Roles missing in Chef Manager, but present when roles listed in console

I created a series of roles directly in Chef Manager. When I refreshed the page, the roles were gone. They are still on the server, as shown when I run the knife role list command in ChefDK. Is there ...
1
vote
1answer
118 views

Which tool is suitable for synchronizing 40+ machines [closed]

I have approximately 40 arm devices running debian on the internet with known - dynamic - ip addresses. They have limited bandwidth (on 3g mobile, with a piad data plan) I do have ssh access. ...
2
votes
1answer
418 views

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 ...
0
votes
2answers
522 views

Can people automate Windows apps installation?

I understand a Linux application installation can be automated through a script, but I am not so sure if this is true in Windows world. Here I have specific scenario. I want to install Word onto a ...
13
votes
2answers
8k views

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 ...
0
votes
1answer
334 views

Chef 12 CentOS 6.6 No candidate version available

I'me trying to install a custom package from a custom repo. The chef-client run is giving me this error: No candidate version available for ruby-2.3.3 ============================================= ...
2
votes
1answer
503 views

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 ...
0
votes
1answer
966 views

Chef Installing MySQL 5.6 on Centos 7

I'm trying to install specific sub-versions of MySQL via a recipe. I've set the node attribute to 5.6 and ran chef-client on a vagrant test box but it's failing with the following error: ==> ...
3
votes
2answers
5k views

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 ...
3
votes
1answer
725 views

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 ...
2
votes
2answers
684 views

Install Chef server and managed node on a same host

I have a host which I want to manage via Chef, but I have no dedicated host for Chef-server. Which way is better? Install Chef-server on a laptop which I will use as a workstation Install Chef-...
2
votes
0answers
416 views

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-...
2
votes
1answer
878 views

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: --- ...
1
vote
2answers
116 views

trying to get msysgit installed via chocolatey with chef but it's hanging

I'm building a Go-Agent that's deployable via chef to AWS (to give you some context) Part of that is installing Msysgit and as I look it's been 1 hour and 3 mins since it's started trying to install ...
1
vote
2answers
1k views

nginx on vagrant box doesn't start automatically

I've set up a vagrant box with this vagrantfile: # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure(2) do |config| config.vm.box = "puphpet/debian75-x64" config.vm.synced_folder "../.", ...
1
vote
1answer
253 views

vagrant-omnibus: not a valid version of chef

At some point I started receiving following error while trying to provision new vm with vagrant: There are errors in the configuration of this machine. Please fix the following errors and try ...
1
vote
1answer
538 views

How fix when cmd prints command instead of run it?

I am trying to automate chef setup for windows. So I wrote .bat according to this: call winrm quickconfig -q call winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"} call winrm set winrm/config ...
0
votes
1answer
367 views

Installing zend-server php 5.3 on debian 7.x using chef cookbook

When trying to install zend server (6.3) with php5.3 on debian 7.x (wheezy) using the zendserver cookbook for Chef I get the following error: (needs to be php5.3 because of old code in PHP application)...
3
votes
0answers
272 views

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 ...
0
votes
1answer
3k views

Knife commands in chef is not working

my knife config was working. Chef server was updated to a newer version. the pem files match and the knife config should be correct. But when I run any knife command..for example knife user list ...
2
votes
3answers
3k views

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 ' &...
0
votes
1answer
3k views

How do I create & restore a mysql database dump with Chef?

Environment Ubuntu 12.04 Precise64 Enterprise Chef opscode-cookbooks/mysql opscode-cookbooks/database Wordpress 3.9 Objective I am trying to replicate/clone my production Wordpress server. I'd to ...
1
vote
2answers
2k views

Chef “waiting for remote response before bootstrap” indefinitely

Problem: My client does not respond to my bootstrap command, no error is reported. Expected Outcome: I would expect the client to respond within a few seconds of running knife bootstrap. My ...
2
votes
0answers
612 views

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 ...
1
vote
0answers
257 views

Why is connection hanging on 80 or 443?

So I'm using Chef and Vagrant to provision a LAMP stack on a box which I have done before to great success, when along comes this problem. Details as follows: So netstat says we are good tcp ...
0
votes
1answer
3k views

Ubuntu root permission denied

I am trying to setup a Ubuntu 12.04 LTS with chef. I am getting this error, which I'm assuming is related to my user permissions: Chef Client failed. 3 resources updated in 5.613887095 seconds [2014-...
0
votes
1answer
102 views

How to skip a cookbook according to node json file

I have a cookbook like this. if node['httpd'] == "nginx" package "nginx" do action :install end # a lot more stuff end But I don't want to embrace all setting in a if statement. Is ...
0
votes
2answers
171 views

How to make sure order of receipts in chef

I want to create a user at first and then let the user create several directories and templates. I created a cookbook for user like this, knife cookbook create user -o site-cookbooks. How to make it ...
4
votes
3answers
4k views

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 ...
0
votes
1answer
47 views

where do chef and puppet source in house applications from?

We're looking at replacing an in-house solution with chef or puppet to deploy software onto machines. one thing that's not obvious to me in the reading I've done to date is, specifically for in ...
0
votes
1answer
220 views

how to manage secure application API keys with Chef

I have an application I'd like to provision a VPS server for using Chef. My application uses a file that sets up environment variables containing secure API keys for various third party services. I ...
1
vote
1answer
802 views

Chef and PostgreSql

With amazon annoucing postgresql service in RDS, can we setup chef-server(11) with amazon rds postgresql database, rather than using the default databse that gets installed with the omnibus installer. ...
3
votes
1answer
8k views

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: ...
0
votes
1answer
135 views

How to provision a vagrant VM with Chef and and a .rb file filled with instructions

I probably got the whole concept wrong: I have a working Vagrant VM with Ubuntu 12.04, on top of it I want to install a few packages and config files. I have them set in Chef, in the path cookbooks/...
0
votes
1answer
837 views

Change node value in Chef-solo script at runtime

I'm trying to use Chef-solo to deploy some software inside a Vagrant VM, as well as be able to re-use the same recipes to deploy onto a Centos box running on EC2. I'd prefer to generate the root ...
1
vote
1answer
210 views

ubuntu (setup using chef) - issues updating packages on the system (e.g php, rubygems plus others)

I would really appreciate some help with this as I've been trawling google for days now and coming up empty. Background, I'm using chef-solo/vagrant to build a development webserver, I have used a ...
6
votes
1answer
8k views

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 ...