Chef is an open source configuration management framework for infrastructure automation.

learn more… | top users | synonyms

0
votes
1answer
12 views

Asterisk automatic installation

I recently started a project which I need to automate the installation of Asterisk servers for my customers in AWS infrastructure. Customers already own AWS infrastructure. I was thinking the ...
0
votes
1answer
4 views

knife ignores client_key in ~/.chef/knife.rb

I am getting errors like WARN: Failed to read the private key /etc/chef/client.pem: #<Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/chef/client.pem> ERROR: Your private key could ...
0
votes
0answers
12 views

How to overload package_name in Chef cookbook using AWS custom JSON?

I never worked with Chef and OpsWorks before. What I'm doing, I'm trying to overwrite some Chef conf to use modern PHP 5.6. I wrote a JSON for Layer PHP App Server { "mod_php5_apache2": { ...
0
votes
1answer
32 views

How to reset password for Chef web server without email

I'm running a Chef server in the cloud. I can't log into the "Chef Manage" web interface because I forgot my password. I can still use knife to (for example) update nodes from my workstation using ...
-1
votes
0answers
19 views

chef/ruby on win7 segfaults when trying to write to an ENV['variable']

I am seeing a perplexing error where ruby segfaults on this line in a file in chef; env["PATH"] = env_path I've got a several machines running chef-client 11.12.4 on windows 7. One of the machines ...
1
vote
1answer
20 views

Configure management tool to auto-configure by reading config file

The use-case is as given below: The user has a Flat File in his Linux system. This file is a human readable/editable file which contains the configurations for all the needed components of his ...
0
votes
1answer
15 views

Chef attributes for multiple 'clusters' of nodes in the same 'environment'

How can attributes be organized in Chef to support multiple, isolated, clusters of nearly identical servers in an environment? My organization, and I assume many alike, has several staging instances. ...
2
votes
1answer
40 views

How to secure configuration management server

There are many configuration management software options nowadays (Chef, Puppet, CFEngine, Ansible...) which offer an architecture with their repository on a central server and clients communicating ...
1
vote
0answers
23 views

Chef Server opscode-reporting with wrong Postgresql credentials

I'm using Chef 12.5.0 and I recently discoverd that after an update the reporting isn't working anymore. So I executed: opscode-reporting-ctl reconfigure and got the following error: FATAL: ...
0
votes
1answer
45 views

Can I include recipes in Chef deployment hooks?

It might just be me doing something horribly wrong, but I seem to be unable to use custom recipes in Chef / AWS OpsWorks deploy hooks: # before_symlink.rb include_recipe 'supervisor' OpsWorks ...
1
vote
1answer
22 views

How do I override a some Chef package resource properties, without needing to define ALL the other properties?

i use Chef to install RHEL 5.x packages in my nodes. I of course use the package resource, like so package 'jdk' As you can imagine, I have a LOT of package resource calls in a LOT of cookbooks. ...
0
votes
0answers
20 views

Configure alerts on failed Unicorn restart

Our setup looks like this: Ubuntu 14.04.4 LTS AWS Opsworks Chef 12 Monit 5.17 Ruby 2.3 Rails 4.0.8 And we managed to get everything working just nicely, yet however if for some reason, Unicorn ...
2
votes
1answer
59 views

How to configure network interface with chef ifconfig resource for IP determined at recipe runtime

I'm working with Chef through Amazon Opsworks and need to provision and configure additional network interfaces for some of my servers, and I'm having trouble figuring out how to properly use the ...
1
vote
1answer
30 views

How do I run chef recipe from inside ruby code?

From the Rails app I need to provision, configure and manage servers on Amazon AWS. Some time ago I've been using chef-solo and knife to do that, but from the command line. Would that be possible to ...
0
votes
0answers
38 views

icinga2 chef cookbook: idomysqlconnection LWRP creates a conflicting object

When I use the icinga2_idomysqlconnection LWRP to create /etc/icinga2/objects.d/ido-mysql.conf using the latest commit of the chef-icinga2 cookbook in order to use the icinga web 2 web interface on ...
0
votes
1answer
117 views

could not find recipe epel for cookbook yum

i am having trouble with nginx cookbook.. and it dependency on yum-epel. Getting error : " Chef::Exceptions::RecipeNotFound could not find recipe epel for cookbook yum" $ knife cookbook show ...
0
votes
0answers
16 views

completely remove chef off my server

I am trying to install chef onto my RHEL6 machine. I have followed a old guide that is not relevant and I am getting some errors now and I want to fully wipe chef off this server. I tried following ...
1
vote
2answers
46 views

How to test modified chef recipe on single node?

I have a chef server managing a handful of nodes. The server has recipes and data bags with various secrets. I'd like to make changes to one of the recipes and test it on a single node only: I do not ...
0
votes
1answer
40 views

Chef certification check fail “cookbook upload” despite success “knife ssl check”

I had placed crt key from "Distributor", and then checked and successed. But "knife cookbook upload" failed. Chef Server Hostname : "Distributor" Cent OS 7 chef-server-core-12.4.1-1.el7.x86_64 ...
0
votes
0answers
42 views

SSH connection Timeout using CHEF

When I run the following code in PowerShell: chef-repo> knife bootstrap windows winrm 172.25.174.27 -x Admin -P 'Microsoft@1234567' -N 'target1' I get an error: ERROR: ...
1
vote
0answers
26 views

How do I set up omnibus builder environment on vagrant centos box using chef?

I need an omnibus builder box for building a python cli package. I would like to use this cookbook, on this vagrantbox I am running this as root since the omnibus installer needs to check something ...
0
votes
1answer
53 views

How to manually set up a Chef node?

I have a Chef server running on Ubuntu 14.04 (see Note 1) and I can access the "Chef Manage" website by visiting the IP address (mychefserver.myorg.com) in my browser. I have a workstation running on ...
0
votes
0answers
31 views

Run chef-client ever 15 minutes from node

I'm trying to get a Windows Server Chef node to run 'chef-client' every 15 minutes. Should this be done by creating a scheduled task to run it in cmd every 15 minutes or can I create a recipe that ...
1
vote
1answer
14 views

chef-client delayed until end of recipe

I have a recipe that looks like the following: service "xyz" do :action nothing end file "xyz.conf" do ... notfies :restart, "service[xyz]", delayed end file "xyz.props" do ... ...
0
votes
3answers
79 views

Auto-Retry Config Push with Ansible or Saltstack?

I'm trying to choose a configuration management system for 500-2000 very-geographically-distributed hosts. Due to varying network reliability, it's possible that a number of hosts may be temporarily ...
0
votes
1answer
46 views

Upload specific Chef cookbook version with knife?

Is it possible to upload an exact version of a Chef cookbook via knife? All I've seen is that knife will upload the latest version it can find. Is it possible to upload a specific version? ...
1
vote
1answer
38 views

Chef recipe not working

I am working on chef and vagrant. I am trying to configure nginx with php-fpm and spin-up new server using chef-solo. Here is the configuration of my vagrant file. Vagrant.configure(2) do |config| ...
0
votes
1answer
20 views

knife ssh node name wild card matching

I have a chef environment "dev", We are switching our continuous integration build environment from jenkins to bamboo. So we have a bunch of nodes names "jenkins_slave_??" and "bamboo_slave_?? I ...
0
votes
1answer
25 views

chef common recipe multiple roles

i have created a mongodb chef recipe, and i am overriding the default attributes on the recipe from the role. name 'mongo_datanode_jackey' description 'this module is currently under testing...' ...
1
vote
1answer
37 views

Monit Web Service not available

I'm trying to configure monit on my server using chef solo. When I visit port 2812 response saying this webpage is not availble. config/chef/files/default/monitrc set daemon 30 set pidfile ...
0
votes
1answer
29 views

create a chef cookbook from current configuration

Im wondering if its possible with chef (or any other tool like puppet or ansible ...) to create cookbooks from current server configurations. For example i have a red hat server with an jboss 7 ...
2
votes
2answers
60 views

What is the difference between AWS OpsWorks and my own Chef server?

Is there any difference between using AWS OpsWorks, which uses Chef internally, and using my own installation of Chef? Currently I have a my own Chef server. What are the advantages or disadvantages ...
1
vote
1answer
273 views

Can't resolve chef external cookbook dependency in local mode

I'm making my first recipes in chef. I created a cookbook i called common with just one recipe (default.rb): apt_repository "mariadb-repo" do uri ...
1
vote
0answers
46 views

How to copy ssh keys on a new VM

Hello guys (and girls) I'm having the following situation: -new CentOS6 VM (created within a Hyper-v failover cluster), joined Windows AD via script I need to bootstrap this new VM in chef server ...
1
vote
1answer
82 views

Knife not parsing JSON variable in PowerShell

I am trying to create an amazon EC2 instance using "knife ec2 server create" and passing in JSON to override the default settings by using the -j option where $json is properly formed JSON text and I ...
1
vote
0answers
46 views

etcd cluster setup with chef - determining initial-cluster-state

I am writing chef scripts to setup an etcd cluster. The list of nodes (including their IPs) will be hardcoded in the chef script (as an attribute) and it will pass them to etcd using static ...
4
votes
1answer
76 views

why is apt-get install anything is asking to update nginx.conf ? How to fix this using chef?

I was trying to install few packages which are non related to nginx (for example htop) using chef script. But it was failing because its asking to update nginx.conf and nginx/sites-available/default. ...
0
votes
1answer
46 views

SSH hardening with chef test-kitchen. How to tell test-kitchen how to connect?

I wrote a chef cookbook and it runs fine with test-kitchen. Now I want to harden ssh access to the production nodes by writing a recipe that overwrites /etc/ssh/sshd_config. Among other things, it ...
-5
votes
1answer
35 views

how to decrypt a password in centos-71 [closed]

I have installed Oracle VM and on top of it Centos-71. I am logging into the centos by vigrant user and the password is also set during configuring it with chef. Is there a way to decrypt the password ...
1
vote
1answer
85 views

Chef — notify multiple packages

I'm trying to deploy postgresql 9.4 on CentOS 7 package ['postgresql94-server', 'postgresql94-contrib'] do action :nothing end execute "yum check-update" do command "yum check-update" ...
-1
votes
1answer
25 views

Deploy or shut-down nodes based on load with Chef

AWS has OpsWorks, which is their own take on Chef. We have several reasons[1] why we want to use a "normal" chef-server/-client setup. But OpsWorks has one feature that I cannot find in ...
0
votes
1answer
60 views

Knife data bag from file - is not creating encrypted file

I'm trying to create an encrypted databag. I'm using something like this as source { "id": "rds-2", "web": "adeasdeasde" } and I want the encrypted file to go on to data_bag/aws/rds-2.json, so ...
0
votes
0answers
33 views

Errors running Chef to provision Vagrant

I'm running Chefdk, chef-provision, and chef-provision-vagrant, and I've set up a recipe to create the VM, and another to provision. I'd like to point out that I am new to Chef (I'm more of a Puppet ...
0
votes
1answer
20 views

Fixed: Knife create instance failing - ERROR: uninitialized constant Chef::Mixin::Command

I'm wondering if any of you guys have a clue on what is the problem here. I'm using Chef Knife EC2 plugin to create a new instance. After completing the ssh connection step, it seems to break on ...
0
votes
1answer
61 views

Chef install local apt_package with dependencies

I try to install my locally baked package on server: cookbook_file '/var/cache/apt/archives/nfdhcpd_0.20_all.deb' do source 'nfdhcpd_0.20_all.deb' owner 'root' group 'root' mode '0755' ...
2
votes
1answer
96 views

Re-bootstrap a Chef node

I've got a Chef node, bootstrapped with knife bootstrap my.example.com --ssh-user USER --ssh-password 'PASSWORD' --sudo --use-sudo-password --node-name my.example.com If I then format the node, how ...
1
vote
0answers
268 views

Chef Server 12 on Debian Jessy fails with “unable to change to service directory”

While not being officially supported, I want to run Chef Server 12 (12.3.0) on Debian Jessie. After fixing Debian's systemd ego trip as described in chef-cookbooks/chef-server#86, it is installing ...
1
vote
0answers
25 views

My cloned Chef server has a problems with syncronising of recipies

I have inherit a complex company cloud based server system with several Nodes that is using Chef for the setup of the different nodes. Chef + Ironfan + Berksshelf are the most important elements on ...
0
votes
1answer
40 views

Can I upgrade nodes to chef 12.5.1 client in chef server 11.1.3 environment?

We are running opensource chef-server 11.1.3 (we are testing chef-server-core 12.2.0-1). Can I upgrade the client nodes in my 11.1.3 server environment to chef-client 12.5.1? Would anything ...
0
votes
1answer
34 views

save all ohai information from selected nodes

I'm running the open source version of chef server 12. While reading some docs I came across ohai, which collects information on each node and - as far as I understand - provides this information to ...