Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [chef]

The tag has no usage guidance.

0
votes
1answer
18 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 ...
0
votes
0answers
503 views

Create custom PXE boot image (using Puppet, Chef etc)?

Is it possible to build custom PXE boot images using machine resourcing tools such as Chef (or Puppet)? We run a large compute cluster where I'm working, and at present we use Ubuntu MAAS to acquire/...
1
vote
1answer
111 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. ...
0
votes
1answer
186 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
112 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 ...
9
votes
1answer
4k 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
142 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 ============================================= ...
1
vote
1answer
299 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
759 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: ==> ...
2
votes
2answers
3k 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 ...
2
votes
1answer
581 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 ...
1
vote
2answers
514 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-...
1
vote
0answers
105 views

Automated Windows config-based installation (bare-metal) instead of backup restore [closed]

Given the current CPU/SSD performance and the ability to store important files on fail-safe storage (cloud, RAID, whatever), I'm finding that taking backups is "too 2000". Especially if you consider ...
2
votes
0answers
400 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
689 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
109 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
196 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
408 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
344 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
263 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
2k 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
2k 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
594 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
238 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
2k 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
95 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
137 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 ...
3
votes
2answers
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
46 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
213 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
663 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
7k 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
132 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
801 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
208 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 ...