Chef is an open source systems integration framework built to bring the benefits of configuration management to your entire infrastructure. You write source code to describe how you want each part of your infrastructure to be built, then apply those descriptions to your servers. The result is a ...

learn more… | top users | synonyms

0
votes
0answers
15 views

Why does Web Platform installer try to repair itself every 40 mins?

I'm seeing Web Platform installer do a repair/reinstall on my win 2008 r2 server (Build: 7601: Service Pack 1). Web Platform installer has been initially installed on this machine via chef (the 'iis' ...
0
votes
0answers
18 views

How I can Add variables to PHP.ini using chef

I am using redis into my project using chef. We are creating server automation, so everything is done using chef recipe's only. I have installed php-redis using chef. Now I need to add two variables ...
0
votes
0answers
26 views

Invalid Redirect error when trying to create user in Chef Server 12

When I try to create a user in Chef Enterprise Server, I am getting an error sudo chef-server-ctl user-create admin m n ******@i&&&.com chefrocks --filename admin.pem ERROR: ...
1
vote
0answers
6 views

Add a group to a group with Chef on Windows

I'm trying to manage a Windows server with chef, and need to create some users, add them to a group, and add that group to another group. user 'test.user' do password 'password' action ...
0
votes
2answers
39 views

Server Snapshot Capture For Cloning [closed]

I have a situation and would love to hear your suggestions. Situation: I have a server that is hosting several important workflow applications on cloud. Changes are made to few add-ons apps on the ...
1
vote
0answers
18 views

Rollout approach for centOS/RHEL linux servers to achieve centralised authentication through AD

We have 3 environments testing develop and production each having more than 40 Linux servers. Need to establish centralized authentication through AD for all these environment. Which is the best ...
0
votes
1answer
45 views

Berksfile source doesn't recognize self-hosted Chef server

I have a self-hosted Chef server. I can knife upload to that server, and otherwise interact with it. Therefore, my knife.rb works fine. I have recently parameterized a cookbook in order to make it the ...
0
votes
0answers
25 views

How can I use AWS placement groups with ironfan?

I would like to use AWS placement groups in order to decrease latency between my front-end server and back-end servers in a particular availability zone. We use the Chef orchestration layer Ironfan, ...
0
votes
1answer
76 views

Connection refused while setting up Chef Server 11 on Ubuntu 14

I just spun up an Ubuntu 14.04 VM on HPCloud.com to practice Chef. Following this turial I setup a DNS on HPCloud, as well as set the hostname in /etc/hosts to chef-server.mydomain.com When ...
0
votes
1answer
60 views

Integrating Foreman 1.7.1 with Chef12

I am trying to integrate a new Foreman 1.7.1 with a new Chef 12 server. I've installed them both and I wish to integrate it (https://www.youtube.com/watch?v=mtR0mCeisbs will be my inspiration). I ...
0
votes
1answer
34 views

Ruby/Chef include_recipe and know variables from parent file?

I am trying to use a local variable in an included file. I get the error that's it's not defined. I am not sure a way to do this, do you? I have a recipe folder with: recipes/ development.rb ...
1
vote
0answers
106 views

test-kitchen with Windows guest converging fails with WinRMAuthorizationError

I'm trying to get test-kitchen working with a guest Windows VM. I've followed a lot of Matt Wrock's excellent blog posts. I've set up a working Windows Vagrant box, used the right test-kitchen and ...
0
votes
0answers
11 views

How can I get the correct client.pem file on a bootstrapped Windows Azure VM?

I'm really struggling to bootstrap a Windows VM in Azure using knife azure. I have my image and I've created the winrm firewall rule and configured winrm per the instructions. The machine spins up ...
1
vote
0answers
32 views

Chef-client not updating a cookbook from the server

I have a chef cookbook (for apache2). It fails to work on one node. So I'm trying to tweak it and update it, but the node doesn't seem to download the new version. I have been able to upload ...
0
votes
0answers
58 views

Chef Server 12 reconfigure fails with RabbitMQ

After installing Chef Server 12 on CentOS 6.5 everything went well but now I've removed the premium addons that I've installed manually (using RPMs) there is an issue with RabbitMQ: *It might be ...
1
vote
1answer
67 views

Chef - Automatically add nodes to chef server

How would you configure a VM so that it will automatically register with a chef server? I know that I could use knife bootstrap, however that is very tedious if you are starting dozens of servers at ...
0
votes
0answers
54 views

Vagrant up chef provision fails on normal up

So I thought I had this all working, but it seems I'm still missing something. When I vagrant destroy --force && vagrant up, everything works just fine. It creates the box and chef ...
1
vote
0answers
20 views

Cannot kitchen init as non-root

I am trying to use test-kitchen, a tool to test chef (etc) cookbooks with virtual machines. However when following the guide and doing kitchen init --driver=kitchen-vagrant, I get the following ...
0
votes
1answer
31 views

Is it okay to delete .git directory in AWS OpsWorks S3 deployment?

I'm using AWS OpsWorks S3 deployment for quite some time. Suddenly the deployment fails. When I checked the instance, it turns out the disk is full. When I checked the release path inside the ...
0
votes
0answers
23 views

How to skip override a specific value in Chef template

Chef template is getting name and value from attributes: { "name" : "email.username", "value" : "<%= node.conf[:email_username] %>" }, { "name" : "email.password", "value" : "<%= ...
0
votes
1answer
48 views

opsworks/chef databag where to put the json file?

Hello I'm reading this howto: https://github.com/imoglobe/opsworks-cookbooks/blob/master/user/README.md but it does not mention where to put the data bag in the cookbook with the list of users in json ...
0
votes
1answer
62 views

Can't use chef-zero with vagrant files

I have a Vagrant (1.7.2) set up with 2 vms. I want to use chef (latest version now 12?) to provision them. I am trying to get one to be a nagios server and the other to be a machine monitored with ...
2
votes
1answer
20 views

Chef node.name not being set

What I am working with: Debian Wheezy 7.6 Chef: 11.14.6 Up to this point, I have always used node.name to set the hostname of an instance. Example: { "name": "web-01", "chef_environment": ...
0
votes
1answer
30 views

knife cookbook site downland with all dependencies

I'm just starting out with chef, and I'm following http://gettingstartedwithchef.com. One thing it suggests is using knife cookbook site download $COOKBOOK_NAME to get community cookbooks. However ...
0
votes
0answers
25 views

Chef and sensitive config data between environments

I'll start out by saying I'm pretty new to Chef and certainly have only scraped the surface of what it can do. Have spent hours reading and playing. So far I have successfully written some ...
0
votes
1answer
23 views

Is there a way to update attributes files directly in chef server without uploading cookbook again

I am using hosted chef environment in windows.I need to update the attribute file during each chef client run. Currently ,I update it manually and upload the cookbook in chef server.Is there any way ...
0
votes
1answer
69 views

Chef Server 12 installing Chef Client 11

I have a master machine I just upgraded from Chef 11 to Chef 12, but when I go to create a new EC2 node it want to install client 11.18 instead of 12.01 or 12.03. I'm not sure if that's causing the ...
0
votes
0answers
23 views

Unable to set jdoconfig.xml and appname.properties templates for the war file deployed in tomcat7/webapps

Recipe: include_recipe "lgjava" include_recipe "lgtomcat" remote_file "/usr/local/tomcat7/webapps/web.war" do #this file places web.war in the specified path source "http://path/to/web.war" ...
1
vote
1answer
67 views

Can Chef AWS cookbook query EC2 instance tags?

Chef has the official AWS cookbook (https://github.com/opscode-cookbooks/aws), which allows for spinning up of AWS resources, as well as updating of resource tags. Can the custom resources introduced ...
0
votes
0answers
217 views

Chef Issue bootstrapping windows VM using winrm via https

Chef Server(RHEL 6.5): 11.16.4 Windows endpoint: Windows 2008 The bootstrapping works fine over http (with winrm config allowUnEncrypeted = true and basic auth = true). Now we are trying same thing ...
1
vote
0answers
60 views

Requires to reboot a linux machine only if the new kernel is install/update

we have an use case where we need to reboot a linux machine only if the new kernel version is installed/upgraded through yum_package. currently I am using chef-solo for running this. ruby_block ...
0
votes
1answer
25 views

Chef: 'search' not finding nodes by role on dev

I'm working on spinning up a cluster of nodes. In myrepo/cookbooks/mycookbook/.kitchen.yml I have driver: name: vagrant provisioner: name: chef_zero roles_path: '../../roles' ...
-1
votes
1answer
90 views

Chef-client --local-mode returning zero-length file

I am switching from chef-solo to chef-client -z (--local-mode) for running chef on my machines because of an issue that I've seen recently with chef-solo in version 12. I have one spot in one of my ...
1
vote
2answers
285 views

Chef Installation Error - Error executing action `run` on resource

I am trying install chef (chef-server_11.0.4-1.ubuntu.12.04) on ubuntu 12.04.5 64 bit. After the installation, when I run "chef-server-ctl reconfigure" getting following error. let me know how to ...
2
votes
3answers
235 views

Chef - SSH without password

When executing: knife bootstrap {{IP}} --ssh-user centos --ssh-password '' \ --sudo --use-sudo-password --node-name node1 \ --run-list 'recipe[learn_chef_httpd]' I am getting the following error: ...
1
vote
1answer
43 views

Knife Vsphere Password Plain text

I'm using the knife-vsphere plugin for chef to interact with our vsphere hosts. As part of the config for the knife-vsphere plugin it seems that you have to enter a plain text password which I think ...
-1
votes
2answers
53 views

Real-time integration with Chef Server

We have a set of Chef servers whose node data we integrate with data outside of Chef. Currently we use a batch sync process to read nodes out of Chef and then push the data into the data integration ...
4
votes
2answers
672 views

Ansible, Chef, Puppet or ____ : Which has the strongest Windows support and smallest init footprint

We do mostly (but not exclusively) win servers. Preferably, we can start the OS and do little or nothing to it to make it ready to receive commands (we know we may need to create a base image with ...
0
votes
0answers
70 views

How to change the execution time of the my.ini file using Chef

I'm attempting to get an existing Drupal site set up using Vagrant Drupal Development but have come across a few problems. My first is that I cannot seem to connect to the database to import my SQL ...
1
vote
2answers
24 views

recover chef node configure from server

Does anyone know to to retrieve chef node configs from an open source chef server? I need to move node configs that where managed by an old chef server (cloud instance) that didn't update properly to ...
0
votes
0answers
49 views

Defining mock nodes in Chefspec

In the main Chefspec docs I see I can do the following RSpec.configure do |config| config.cookbook_path = '/var/cookbooks' config.role_path = '/var/roles' end however I see no reference to a ...
0
votes
1answer
89 views

Internal Server Error when trying to upload cookbooks

I'm trying to migrate our Chef server to another box. I installed a new instance of Chef in the new box and I can access it using the default admin and password. I can also do knife node list and ...
1
vote
1answer
73 views

How to make consistent deployment directory for AWS OpsWorks' S3 archive deployment across each servers?

I'm using S3 archive deployment app to deploy a zip file generated from build process. When I deploy to several servers I notice that the absolute path generated by the deployment are different on ...
0
votes
0answers
132 views

Chef says cookbook doesn't exists when it does

In my runlist for one of my nodes, I have "recipe[logstash::server]". When I run chef-client on the node, the following error is thrown: The following cookbooks are required by the client but don't ...
0
votes
2answers
254 views

Knife can't ssh into newly instantiated EC2 server

I just set up a new Chef environment as I'm currently expanding my knowledge of Chef. I have a Key Pair set up on EC2, I have my Knife configuration set up. When I attempt to spawn a server, the node ...
0
votes
2answers
89 views

Chef template rewrites file even though content didn't change

I'm using template to generate a file. When the app on the server starts, it re-writes the file - the content doesn't change, but Chef considers it as changed and during next run it re-writes it as ...
1
vote
2answers
215 views

chef: how do I reboot a node only if a confg file is modified

ENVIRONMENT: aws opsworks chef 11.10 and ubuntu 14.04. I'm using a chef recipe to update the /etc/dhcp/dhclient.conf file on an aws opsworks ec2 node in order to add my custom dns search suffix to ...
0
votes
0answers
19 views

Knife search's result is wrong

I have question in knife search. My knife serach put wrong result. I'm typing this. knife search 'name:PR-WAS-C1' -i result is this. 6 items found PR-EU-RelayProxy-A1 PR-RelayProxy-A2 ...
0
votes
1answer
72 views

Chef installation in a chroot (packer): not starting services

I'm trying to use packer.io to create a machine image for a server who's deployment I already have automated using Chef (chef-solo specifically), using the amazon-chroot builder and the chef-solo ...
0
votes
1answer
188 views

OpsWorks Berksfile processing failed: (Encoding::InvalidByteSequenceError)

A few hours ago all my OpsWorks stacks started failing to update_custom_cookbooks. They are all failing on "Install the cookbooks specified in the Berksfile and their dependencies" with the error: in ...