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 ...
0
votes
1answer
18 views
How to update chef with knife solo?
I ran knife solo bootstrap [myserverssh] to initially install recipes on my server. Everything got installed correctly.
I then made changes the recipes. I ran knife solo cook [myserverssh] to update ...
0
votes
1answer
15 views
Managing Multiple Configurations for the Same Software in Chef?
I'm new to Chef. I've been using chef-solo and I really like it so far. One thing that's not clear to me is the best practice on handling software configurations for the same software for different ...
0
votes
0answers
18 views
knife bootstrap windows winrm/ssh timeout
I am trying to bootstrap windows server with chef-client. I am able to manually go in and install the Chef omnibus installer. Then I successfully installed the rubygem knife-windows for chef-client ...
0
votes
1answer
23 views
Can't compile nginx::source
I have downloaded nginx cookbook manually today from http://community.opscode.com/cookbooks/nginx and started it with
include_recipe nginx::source, using chef-solo 11.4 on Ubuntu 12.04
But I have ...
0
votes
0answers
17 views
Adding an existing machine to chef-server using chef-solo
So I have a bunch of machines on ec2 that I've provisioned using Chef-solo and some launch scripts passed as user data.
Recently, we began doing some work with the nagios cookbook and edelight's ...
1
vote
1answer
76 views
How to force actions on “up to date” resources in Chef?
In the following code, I create a service that I would like to start only after deploying files that it depends upon, and to restart it whenever those files change. This very basic recipe does not ...
0
votes
2answers
50 views
how do I use chef to force ubuntu to install dependencies?
New to chef.
I'm trying to install openjdk-6-jre-headless using chef, but first I went to try it out using apt-get and I get this this error
The following packages have unmet dependencies:
...
20
votes
5answers
912 views
Why use Chef/Puppet over shell scripts?
New to Puppet and Chef tools. Seems like the job that they are doing can be done with shell scripting. Maybe it was done in shell scripts until these came along.
I would agree they are more readable. ...
-1
votes
0answers
24 views
cannot install chef on windows [closed]
I'm trying to install chef on windows 7. Just runing command:
gem install chef --version=10.16.2 --no-rdoc --no-ri
But there is error occured:
Temporarily enhancing PATH to include DevKit...
...
0
votes
1answer
52 views
How auto configure or mirror my dev Ubuntu installation onto other dev machines?
I have a lot of packages and configurations done to setup my dev machine. I have other developers in my team and want them to have the same setup to start with to ensure compatibility and availability ...
0
votes
1answer
34 views
Organizing Chef resources and extending cookbooks: Apache2 package + Compiled PHP
I'm trying to understand how to organize my Chef kitchen and extend the functionality of Opscode community cookbooks. Disclaimer: n00b.
PLANNED STACK
Ubuntu 12.04.2
Apache2 (package)
PHP 5.4.13 ...
0
votes
0answers
34 views
Chef Workflow and explanation [closed]
I am learning chef and one of the hard pain points i had while doing so was that the resources organized on chef wiki don't mention a proper flow in which a new comer should start with simplers things ...
0
votes
0answers
18 views
How to perform a cleanup on Chef resource removing?
I need to perform certain actions (e.g remove a link) when a resource gets removed from a Chef-controlled node. It looks like Chef itself performs cleanup actions because I can see entries like ...
0
votes
1answer
42 views
Error when using Chef on OS X: “bash: chef-solo: command not found”
I have chef installed on my local machine: Mac OS X 10.8.3
I also have chef installed on a remote server: Ubuntu 12.10 x64 Server
On the local machine, when I try to execute a command using ssh ...
0
votes
1answer
29 views
Is there a way to specify versions for programs using Vagrant and Hosted Chef?
I am trying to improve my development workflow but am running into some major roadblocks. Currently, we develop on local Windows machines running XAMPP then after tested on an individual machine, push ...
0
votes
1answer
39 views
How to copy the appropriate config file, with CHEF, in a recipe?
I'm starting to learn how develop recipes to chef.
I need to install Ganglia Monitor in some servers (or nodes in ganglia literature).
So that's why I'm checking if the plataform is ubuntu, centOS and ...
0
votes
0answers
24 views
Chef doesn't preseed installation of the package
I have created a a file in my cookbook in files/default/debconf-selections-libnss-ldapd
with the following content :
libnss-ldapd libnss-ldapd/nsswitch multiselect group, passwd, shadow
...
0
votes
0answers
25 views
Chef - Could not find /etc/rc.conf when start service on Archlinux
I'm trying chef-solo on ArchLinux.
I have installed openssh by pacman -S openssh ,then I run
# chef-apply -e "service 'sshd'"
I got the error: Chef::Exception::Service: Could not find /etc/rc.conf
...
0
votes
1answer
73 views
Vagrant / chef - nginx cookbook extend
I am fairly new to using chef, particularly with vagrant so this will most likely be a silly question to the more experienced users out there.
I am using this cookbook: ...
0
votes
1answer
65 views
What is the most automated way to deploy a new server being managed by Chef?
We use knife-vsphere to deploy and configure new chef-managed servers in our virtual environments, but don't have any one-step solution for physical servers. Currently the process involves imaging a ...
2
votes
1answer
121 views
How to install PHP 5.4 on AWS Opsworks
I'm trying to get php 5.4 running on AWS Opsworks.
When I add the "PHP App Server" layer I get the following description "The PHP Application Server layer is a blueprint for instances that function ...
0
votes
0answers
27 views
“one-off” use of http_proxy in a Chef remote_file resource
I have a use case where most of my remote_file resources and yum resources download files directly from an internal server. However, there is a need to download one or two files with remote_file that ...
0
votes
0answers
28 views
Chef rbenv cookbook recipe user not found
I have a problem with Chef rbenv cookbook. Once I start to bootstrap a server it gives me a error:
could not find user recipe for cookbook rbenv
But the recipe is in the recipes folder.
I can not ...
0
votes
0answers
24 views
Load Balancing in Chef Server 11
I want 2 chef server to be under a load balancer. The problem is the authentication of the client. If anyone has ever done something of this kind then please guide me through . Nginx is included in ...
1
vote
1answer
57 views
Service doesn't start when using chef
I've written a script which I trigger as a service. When I call service myservice start the service starts fine. However, when the same service is triggered using chef, the service doesnt start.
My ...
1
vote
1answer
74 views
Manage multiple ssh-keys for one user with Chef
I started to use Chef in my infrastructure, but cannot make recipe like this:
-each developer has own public ssh-key.
-in remote server there is an unique user, named ubuntu
I want to use data bags ...
0
votes
1answer
45 views
Chef how to run a run list in filtered node
How to run a run list in several nodes?
Now I wrote a script loop those severs and run using knife bootstrap.
Is there better way to do it?
Like how we use "knife ssh 'id:*', can we run a run list in ...
0
votes
0answers
85 views
How do I load JSON attributes pass via knife through chef recipes?
I have a web server that basically accepts input for a knife ec2 create server command.
In my knife command, I pass in
-j '{"branch":"clone"}'
From documentation I thought I would be able to do ...
0
votes
0answers
40 views
How to access data bags in an application cookbook
I would like to deploy my app from a non-public git repository. As I understand the default recipe for this (using application and application_nodejs cookbooks) would look like:
application ...
1
vote
1answer
126 views
Using Chef Solo to provision a Windows EC2 instance and bootstrap it
I'm trying to automate our CI process for a couple of .NET apps, and in a perfect world I'd like to spin up a Windows EC2 instance for each, bootstrap the instance to install Chef Solo and then ...
0
votes
0answers
21 views
Can I get a clear summary of how and when each part of a chef cookbook is loaded/executed?
Here's what a chef cookbook looks like:
.
├── attributes
│ ├── default.rb
│ └── bla.rb
├── files
│ ├── default
│ │ └── some_file.txt
│ └── windows
│ └── some_file.txt
├── libraries
...
0
votes
1answer
39 views
How to create a group with chef
I assume this is straightforward, but I'm lost in the abstractions in Chef. I want to create a new Unix group on Red Hat Linux, called deployers, and then add some of my users to that group. What are ...
2
votes
1answer
80 views
What is preferred approach to deploy Python app using RPM? [closed]
I am new to the dev-ops side of things, and I've been working to get a Python application packaged into an RPM (using python setup.py bdist_rpm) deployed onto a centos VM via Yum. Chef is used to ...
1
vote
2answers
95 views
keeping chef data bags on server in sync via git repository
I recently started using chef and I love it for provisioning my vagrant boxes and quickly spawning new machinges.
Now I started using a hosted chef server.
It's pretty easy to manage my cookbooks ...
0
votes
0answers
75 views
Amazon OpsWorks custom cookbook RVM
I'm trying to install RVM with Amazon OpsWorks using this cookbook. I want rvm to run under the user tomcat6, so I included the recipe rvm::user with the correct attributes.
The error I'm getting is:
...
0
votes
1answer
76 views
Pass override attribute via command line for chef-solo
For chef-solo, is it possible to pass the override attributes via command line?
Because sometimes the attribute is just adhoc decision and is diffent from host to host, e.g. hostname, we don't want ...
2
votes
2answers
121 views
Chef: create a directory for a template if it doesn't already exist
If I have a template being created, how can I ensure that the directory exists? For instance:
template "#{node[:app][:deploy_to]}/#{node[:app][:name]}/shared/config/database.yml" do
source ...
1
vote
2answers
93 views
Prevent chef recipe from executing previously executed action?
I have a simple recipe like the following, and currently I am using a local file to indicate if the command has been run or not
execute "test" do
command "sh test.sh && touch ...
0
votes
1answer
143 views
Can't get yum repository (ius) to install because of (epel) dependency that seems to be installed
So I'm trying to install the epel repository and then also install the ius repository.
I'm managing this server with chef, and my run list goes
...
"recipe[yum::yum]",
"recipe[yum::epel]",
...
2
votes
2answers
156 views
What is the correct way to loop in a Chef (solo) recipe?
Can someone please explain to me how chef works? That is a pretty broad question, so to narrow it down I have this very simple recipe that loops over a list of users and creates each one if they do ...
0
votes
2answers
115 views
node's FQDN is missing in chef
I am a newbie to the chef and knife, I am running couple of ec2 instances and have install chef-client and I can see all the instances in the node list of the chef, but couple of them are missing FQDN ...
0
votes
1answer
43 views
unable to bootstrap ec2 ubuntu instance
Hi I am trying to bootstrap an ubuntu ec2 instance using knife command line tool, but when ever I run this command
knife ec2 server create -x ubuntu --region ap-southeast-1 -i ami-0cdf4965 -S key ...
0
votes
2answers
89 views
bootstrapping an ubuntu ec2 instance using chef and knife
I am bootstrapping a ec2 ubuntu based chef node using chef, it creates an instance but it says Failed to authenticate ubuntu - trying password authand asks for the password. But a newly created ubuntu ...
0
votes
1answer
117 views
Cloning and deploying existing Linux builds via Chef, Puppet, etc
Is Chef, Puppet, etc able to be pointed at an existing Linux server and suck down 100% of the 'stuff' that would be required to build the server OS/package-versions/custom-files/etc including the ...
0
votes
1answer
172 views
Merging Chef attribute arrays
Let's say I have two cookbooks, Foo and Bar. In cookbook Foo, attributes/default.rb contains the following:
default[:test] = [{:baz => 'A', :qux => 'B'}]
In cookbook B, I'd like to expand ...
0
votes
0answers
89 views
Unable to install cookbook using chef
I have just began my journey of chef and I have couple of ubuntu ec2 instances running I have installed the chef-client and also configured the node. I am trying to run a getting started cookbook I ...
2
votes
2answers
537 views
Chef: connection refused for cookbook upload
Be gentle, I'm new to chef, trying to get my environment set up and have some new recipes to upload to my new chef server. I'm able to do some commands, and I was able to knife bootstrap the new node, ...
0
votes
1answer
36 views
How to set up/customize configuration-specific attributes in a recipe?
I am starting to use chef to automate setting up build machines for a build farm. Some of our dependencies here are machine specific (e.g. license key for proprietary compiler), and other recipe ...
0
votes
0answers
22 views
Inter-site linking with a WAN cluster infrastructure
I am planning to deploy an infrastructure of 11 nodes using Opscode Chef, providing for a high availability web application. I would like to spread the nodes across datacentres for availability, for ...
1
vote
1answer
174 views
Is there a way to pass parameters at run time in Chef?
I wanted to pass some attributes to chef-client at runtime. Is there a way to do the same?
I was looking into chef-client -j option, but to my knowledge it can be used to specify run_list. Can I pass ...

