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
12 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 ...
0
votes
1answer
17 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
16 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 ...
0
votes
0answers
7 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
20 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
14 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
12 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
14 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
0answers
13 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
16 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
23 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
13 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
36 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
1answer
31 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
99 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 ...
0
votes
1answer
18 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
38 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 ...
2
votes
3answers
125 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
31 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
47 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 ...
3
votes
2answers
305 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
51 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
17 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
32 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
75 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
47 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
86 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
171 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
66 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
129 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
57 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
144 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 ...
1
vote
1answer
238 views

Chef/Ruby: use “each do” block variable with node attribute

Chef 11.10.4 environment running in AWS Opsworks. I can't figure out how to pass the value of the "each do" block variable, "lyr," below, with the node attribute node['aws-tag'][#{lyr}]? The code ...
1
vote
2answers
125 views

Chef over Puppet on Azure?

It seems like Microsoft is preferring Chef over Puppet? There seems to be more "buzz" around Chef and Azure than Puppet. https://docs.getchef.com/plugin_knife_azure.html ...
0
votes
1answer
179 views

“unable to get local issuer certificate” in chef when using knife bootstrap with windows domain auth

I have a working installation of open source chef and am trying to add domain authentication to bootstrap Windows servers. I've created the HTTPS listener as described in the knife windows ...
4
votes
2answers
259 views

Chef: How do I access AWS “opsworks attributes” on an ec2 instance?

I'd like to use a chef-shell session on an aws opsworks ec2 server so I can test some environment and instance specific code I'd like to include in a custom recipe. For example, I'd like to see the ...
0
votes
0answers
24 views

How can I use chef to configure a basic system starting from a template?

I am working on the setup of a new virtual infrastructure that will eventually become the production one. I am at the very beginning and I want to use Chef as automation tool. I've already worked with ...
0
votes
1answer
156 views

How to resolve the chef error “can not find a plugin for dependency linux::network”?

There are no google hits for this error message. I am attempting to run chef-client on a server that has run it successfully in the past. I do not know what changed to produce this error. Here is the ...
0
votes
1answer
77 views

Issues using knife bootstrap on FreeBSD 10

I'm fairly certain this is unrelated to my cookbook, since the following occurs immediately after connecting: 0.0.0.0 Unmatched '. 0.0.0.0 distro=FreeBSD: Command not found. 0.0.0.0 distro: Undefined ...
0
votes
1answer
75 views

Changing Chef Server IP Address

My understanding was that the Chef server is identified to clients by the FQDN, rather than by the IP address (and all the configuration I've done suggested this as well). I found myself in the ...
0
votes
1answer
141 views

Chef order of execution

I have some code that sets node attributes based on a search. I then want to use those attributes in a template. It appears the template is compiling before my code that figures out the values. So it ...
0
votes
0answers
29 views

Assign chef roles to layer/instance

I'm trying to get the following cookbook running in OpsWorks: https://github.com/lusis/chef-logstash/ Following their documentation I have to assign roles to my server(s) to get stuff running. They ...
0
votes
2answers
55 views

OpsWorks Lifecycle Events, I'm trying to understand Configure better

I have become the interim ops guy until the company I am contracting for finds one that knows a heck of a lot more than me. I'm going through our current setup for OpsWorks and our recipes. I noticed ...
0
votes
1answer
60 views

Berkshelf Gemfile version conflict

I received the following error from the berks command when trying to init a new cookbook to use Berkshelf version 3 Could not find proper version of berkshelf (2.0.17) in any of the sources Run ...
1
vote
1answer
214 views

chef-solo with docker: Prevent services from starting during build

I am trying to reuse existing cookbooks within docker containers, but most recipes will start the service during the chef client run (e.g. tomcat, apache2). As chef-solo runs during image creation the ...
0
votes
1answer
90 views

How to use LWRP on in AWS OpsWorks?

Ohai, ist there a way to use LWRP for Chef on AWS OpsWorks? How else would I execute this: nfs_export "/exports" do network '10.0.0.0/8' writeable false sync true options ['no_root_squash'] ...
0
votes
1answer
45 views

Version Lock Ubuntu Repository

I found some duplicates of this question, but none of them answered exactly the thing I want to try. I have one QA and one production server managed by chef solo. I want to version lock the apt ...
1
vote
1answer
41 views

Is there a way to get Opsworks deploy through cache and not by cloning?

Is there a way to get opsworks to deploy by doing git pull instead of git clone every time?
0
votes
0answers
26 views

One project configuration mechanism that will work on both Elastic Beanstalk and OpsWorks

We have an application that we are successfully deploying to Amazon's Elastic Beanstalk. We use .ebextensions/ to configure our application environment. For various reasons, we may need to begin ...