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

learn more… | top users | synonyms

0
votes
1answer
10 views

Is there a way to rename a chef cookbook?

My cookbook conflicts with a community cookbook. There doesn't seem to be a knife option to rename or delete a cookbook. Is there a way to delete a chef cookbook from a server or a way to rename an ...
1
vote
0answers
22 views

Combining cat with knife ssh crashes bash

I'm trying to transfer a ssh key from one node to other using chef's knife ssh combined with the cat command on the key cat ~/.ssh/001.rsa | knife ssh -i ~/.ssh/authkey.rsa 'name:myserver' 'mkdir -p ~...
0
votes
0answers
19 views

Does chef listen on multiple subscribes

As a configuration becomes more complex, it sometimes becomes simpler to have multiple subscribes, (ie. to wait for several things to finish) before executing a new resource. So: 1) Can a single ...
0
votes
1answer
17 views

Deploying apps using Chef and Splunk as a deployment server

I got Splunk up and running on some EC2 instances using Chef. All is fine and dandy and I was able to deploy some apps manually by using Splunk as a deployment server. I deploy the application -> I ...
0
votes
0answers
18 views

How to authenticate without password on Chef deployed nodes

I started to use Chef to deal with DevOps automation and now I have a situation were there are two database servers(primary and secondary) being deployed using knife server create , and during the ...
0
votes
0answers
5 views

chef-manage processes not working (redis, web and worker)

I was able to install chef-server 12 in a docker container. I was also able to access this via URL. However, to have a Management Console, it is stated that I should install chef-manage by executing ...
3
votes
1answer
47 views

How to let chef listen on multiple IPs

I'm currently playing with chef to evaluate whether or not such a configuration tool might help us in our *nix-based environment. For the last few days I'm struggling with one problem I can't find a ...
0
votes
1answer
22 views

Unable to connect to chef server

I have a Chef server running on AWS. I am able to connect to it via web browser and see the web ui from my machine which isn't the ec2. But when I bootstrap the node, also a ec2, it fails to connect ...
0
votes
0answers
38 views

Chef node not checking in with the server

I've recently moved my clients from one chef server to another, and now none of my nodes are checking in properly. I can manually run 'chef-client' successfully, and I do have the chef-client::...
0
votes
0answers
29 views

Chef and MySql: Error setting data_dir

I am trying to setup Mysql server 5.6 on Ubuntu 14.04 using Chef 12, testing using Vagrant It all goes fine till i try to set the data_dir to a custom value (It was working fine with the default ...
1
vote
2answers
36 views

Does a Chef server need to be public?

I have a Chef server running on our local network and tested it with other machines on the same network and everything worked fine. I started up a ec2 instance, and try to bootstrap and it works until ...
0
votes
1answer
34 views

Changing a registry key's permissions from Chef

I'm attempting to automate the Jenkins Windows slave installation and I need to change the owner and permission of some keys in order to allow read/write access to certain keys for the administrator ...
1
vote
0answers
34 views

Custom AMI fo AWSr Opsworks fails setup phase but logs seem clean?

So I've followed through this userguide for creating an AMI from an EBS backed Opsworks instance and it all seemed to go smoothly until I attempted to boot an instance in Opsworks from the new AMI. ...
1
vote
1answer
33 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
18 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
46 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
2answers
109 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
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
32 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
51 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
1answer
47 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
98 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
52 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
23 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
107 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
40 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
60 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
181 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
24 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
91 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
2answers
68 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
76 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: Net::SSH::...
1
vote
0answers
30 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
106 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
38 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
19 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
111 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
107 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
48 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
28 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
48 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
46 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 /var/run/...
0
votes
1answer
36 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
68 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
603 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 "http://tedeco.fi.upm.es/mirror/mariadb/repo/10.1/...
1
vote
0answers
51 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 ...
2
votes
1answer
102 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
50 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
92 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
58 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 ...