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

-1
votes
0answers
14 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 ...
-3
votes
0answers
10 views

Chef | Node auto registration | CentOS6 [on hold]

How to setup UN attendant setup in Chef where whenever any server come in production enroll the same server automatically in particular environment then roles then recipes. i am able to do Node ...
2
votes
3answers
70 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
24 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
40 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
177 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
37 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
15 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
21 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
49 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
31 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
59 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
96 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
51 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
72 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
17 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
34 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
112 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
174 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 ...
0
votes
2answers
109 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
110 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 ...
2
votes
2answers
163 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
21 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
125 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
51 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
51 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
110 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
23 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
41 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
40 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 ...
0
votes
1answer
168 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
62 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
42 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
32 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
24 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 ...
0
votes
0answers
59 views

Setting Samba passwords using Chef without storing plain text passwords in data bags

We have a server that is configured using Chef. Currently, the way that chef manages the passwords is by simply copying down the samba tdb databases and updating the shadow hashes of each user. ...
-2
votes
1answer
432 views

chef-solo vs chef-client --local-mode

According to the document I should replace chef-solo by chef-client --local-mode. Local mode was added to the chef-client in the 11.8 release. If you are running that version of the chef-client ...
0
votes
2answers
71 views

Can't capture chef error to a file

If I run the following: chef-client --force-formatter --logfile STDOUT 2>&1 And then control-c it mid-run (or encounter any sort of error) I see this nice error message: ...
0
votes
1answer
35 views

Any way to set a private ip within vpc?

I've tried using the --private_ip_address but nothing. Anyone knows if there is an option to set up a specific ip address inside of a vpc? I don't want to setup an elastic one. I have a vpn connection ...
1
vote
1answer
78 views

Is storing password hashes in plain text dangerous?

We have a server that is going to be managed through a chef cookbook. Each user for the system is configured using hashes from /etc/shadow. Can we safely store these shadow hashes in our ...
0
votes
3answers
133 views

Chef: how can I stop the user_management recipe in the rabbitmq cookbook from adding a guest account?

I am new to chef and want to use the rabbitmq user_management recipe without the default behavior of adding a rabbitmq guest account. I am using chef-server 11.1.3 and rabbitmq cookbook version 3.3.0 ...
0
votes
1answer
59 views

Specifying SSH port with Chef, knife bootstrap

Per Chef's documentation, the -p (or --ssh-port) flag should allow me to specify an SSH port, however, the following: knife bootstrap host.com -x user -P password --ssh-port 5846 -N nodename --sudo ...
-1
votes
1answer
107 views

on nginx webdav, PUT returns 501

I've been charged with converting a webserver from apache to nginx, and I'm currently stuck on getting webdav to work. WebDAV is served by the PEAR webdav server ...
0
votes
0answers
184 views

Open Source Chef Server can't upload cookbook

I just setup the open source chef server on an Ubuntu 12.04 EC2 instance, I've setup my webui and am able to get responses from my knife commands ie: knife node list, knife client list, knife user ...
2
votes
1answer
78 views

Migrate from enterprise chef to open source chef

I tested out Enterprise Chef and its 5 free nodes. Since then, I have setup the open source chef and want to migrate three nodes from the enterprise setup to the open source server. Aside from just ...
1
vote
2answers
109 views

Copy a directory from remote resource using Chef

I want to copy a directory from a remote respository. To copy a single setup/file I am using remote_file resource. but this doesn't work if you want to copy a complete directory. I also checked chef's ...
1
vote
0answers
45 views

how do I handle a URI with spaces in a chef source attributes on Windows

I am trying to copy a package from a remote server, into my system and then use chef to install the same. Following is the code I use to copy the package remote_file 'c:/repo/OpenOffice 4.1.0 ...
0
votes
1answer
146 views

Deploying Zend Opcache Using Chef PHP Cookbook

I'm new on Chef. I tried writing a recipe that installs Zend OpCache (for PHP 5.4, since its not built-in yet) using Chef PHP cookbook. I tried using the php_pear php_pear "opcache" do ...
0
votes
1answer
41 views

Connecting more than one workstation to chef server

can I connect more than one workstation to the server at a time. Because whenever I try to connect a new workstation to server,it generates a new pair of keys . hence the previous workstation losses ...
-2
votes
1answer
37 views

Is HP-2920-24g switch compatible with CHEF setup? [closed]

I am using HP 2920-24G switch. In that,I am trying to build the setup for CHEF Client. But it shows error while bootstrapping. Is that HP switch supports CHEF or not?