The tag has no wiki summary.

learn more… | top users | synonyms

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
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 ...
0
votes
1answer
62 views

How to deploy custom ami with chef-solo?

I have been working on a project with chef-solo. I need to deploy several CentOs servers with custom application on EC2. Can anyone tell me if this possible with chef or on OpsWork framework? Thanks ...
0
votes
1answer
75 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: ...
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
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
122 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 ...
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
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
1answer
506 views

Chef Opscode apt cookbook - apt-get install returned 100, expected 0

I'm running Chef solo (version 11.4.0) on a clean VPS with Ubuntu 12 installed, and I'm having some problems with apt. The problem was that any package command raised an error: Chef::Exceptions::Exec ...
0
votes
2answers
293 views

Running `apt-get upgrade` with Chef Solo

I'm using Chef Solo to provision a Vagrant VM based on Opscode's "Bento" box for Ubuntu 12.04. When it's done provisioning and I SSH in for the first time, the MOTD tells me there are packages and ...
3
votes
0answers
177 views

Should I use this simple hack for working around chef-solo's lack of environment support?

Chef-solo’s lack of environment support seems to be pretty controversial. On one hand, one of the features of environments is the ability to pin cookbooks to specific environments, and this makes ...
0
votes
0answers
43 views

Storing extra data in .json role/environment files for external (i.e. non-Chef) applications

I’m thinking about converting my roles to JSON syntax and storing some extra data in there for an external, non-chef application (specifically Vagrant). My idea is that if I stick to a convention in ...
0
votes
1answer
114 views

Provision server with chef-solo as root?

I'm using knife to bootstrap my VM with vanilla Debian 7.0 installation. In bootstrap stage I'm just setting sources.list, updating & upgrading system, then I install buil-essential, rsync and ...
0
votes
1answer
99 views

Install custom php modules with chef solo

I've tried to search but unfortunately I don't find any documentation or article about how to install custom php modules like pdo_mysql when provisioning with chef solo. If you do know, I'd be very ...
0
votes
1answer
194 views

How to pass attributes from knife command (ssh)?

Is it possible to attributes from knife command (ssh), e.g. knife ssh ‘role:server’ ‘sudo chef-client’ <-- how to pass attributes to remote?
0
votes
1answer
294 views

Linode setup via Chef [closed]

I'm working on setting up a Linode VPS from scratch but instead of doing it manually I wish to use Chef so I can easily automate it in the future. The question I have is: I realise you can set up ...
0
votes
0answers
75 views

Calling the LWRP from the Exception Handler

Is it possible to call out to a Provider (LWRP) from a Chef Exception Handler? I think my Provider is out of scope, but I don't know if what I am trying to do is possible? or advisable? Here is my ...
1
vote
1answer
259 views

How to create hash or yml from top level attributes values of node?

I have a chef recipe where I want to take all of the attributes under node['cfn']['environment'] and write them to a yml file. I could do something like this (it works fine): content = { ...
1
vote
1answer
191 views

no default value for required attribute

What is the recommended approach for using an attribute in a resource, like a template, when there is no reasonable default for that attribute. The attribute value is expected to be provided at ...
2
votes
1answer
259 views

Configuring Chef-Solo-different override_attributes in one role

First off, im using Chef Solo and I would like things to stay as automated as possible. So I have a problem that i'm not quite sure how to solve. I'm setting up the deployment of a lot of different ...
1
vote
0answers
128 views

Going from Vagrant in development to chef-solo in production, and getting a “FATAL: NoMethodError: undefined method `delete' for #<Chef::Role” error

So I have a set of cookbooks/roles that are configured to work with vagrant. I am now in the process of deploying an application, and I want to run these identical cookbooks using chef-solo on my ...
2
votes
1answer
319 views

Chef 'notifies' fails to restart or reload services

I'm using chef-solo v10.12.0 to configure an Ubuntu 12.04 VM, and I keep running into an issue where services don't restart or reload as expected when a configuration file is changed. There are no ...
2
votes
1answer
587 views

Overriding attributes with Chef Solo

I'm trying to install Maven 3 using Chef Solo and the following cookbook: http://community.opscode.com/cookbooks/maven The cookbook installs Maven 2 by default, and the first time I ran it, it ...
0
votes
1answer
1k views

PostgreSQL 9.1 on Ubuntu Lucid fails to start - how to debug?

I'm using Vagrant with Chef Solo to setup a Lucid 64 box. I'm using a Chef recipe to install PostgreSQL 9.1 from Martin Pitt's backports. The install goes ok until the point where the database is ...
1
vote
2answers
630 views

Net::SSH::AuthenticationFailed when using Chef's Knife ssh

Facts: I have a Chef server installed. I have registered a node to this server, and I can see the node in the webUI (This is an existing node, NOT bootstrapped using knife bootstrap When I execute ...
0
votes
2answers
119 views

chef and software packages with long running builds

I'm experimenting with chef and moving my server configuration over to it. One hurdle I'm encountering is how to deal with packages that must be compiled and installed manually (configure, make, make ...
0
votes
3answers
2k views

Chef stop and start service in sequence

I have the following lines in my recipe service "apache" do action :stop end # Do something.. service "apache" do action :start end I found that the 2nd block is not executed. Any reason?
0
votes
1answer
137 views

Install firebirdsql 2.1 super without dpkg-reconfigure on ubuntu 10.04.3?

I try to install firebird2.1-super with chef. So I can't use dpkg-reconfigure. So I tried to use debconf-set-selections /var/cache/firebird/firebird-server.seed In firebird-server.seed: ...
8
votes
2answers
383 views

Why use chef-solo on a single instance?

I understand the advantages of using Chef and puppet in a multiserver environment. Its fantastic for enforcing and describing configuration across many servers. But lets say you have a single server, ...
1
vote
1answer
582 views

Chef server bootstrap fails on Amazon Linux

I am trying to bootstrap chef-server on Amazon Linux 64-bit instance, but for some reason chef-solo gives some errors. It seems that chef can't determine that Amazon Linux is actually a RedHat ...
0
votes
2answers
765 views

Chef-solo cannot locate an nginx recipe template

I have been recently experimenting with Chef. I thought I would attempt to rebuild my personal web server using chef-solo. It's an AWS instance running the Amazon 64bit Linux AMI. My first ...
4
votes
5answers
2k views

Bare minimal Chef provisioning and deployment?

I've read the documentation on Chef twice over. I still can't wrap my head around it's concept because they skip but fundamentals and jump to complex deployments with chef-server. Using chef-solo and ...
0
votes
1answer
96 views

Running scripts before Chef-solo starts?

I'm using Vagrant with Chef-solo to create a dev environment VM. Problem is, the Debian Chef package depends on a certain version of RubyGems to run, but I want the VM to have a much newer ...
1
vote
2answers
403 views

How to find all local user accounts in chef

Using opscode chef, is there a way to find or loop over all user accounts? I need to create a configuration file in each users home directory. I do not want to loop over any directory structure for ...
12
votes
4answers
3k views

Best practice for testing chef recipes?

My team has created a large number of chef cookbooks. I was wondering what methods and frameworks I should look into so we can start creating tests to assure that our nodes are configured properly?
8
votes
3answers
2k views

What are the benefits of running chef-server instead of chef-solo?

I am looking at automated deployment solutions for my team and have been playing with Chef for the past few days. I've been able to get a simple web app up an running from a base Red Hat VM using ...
1
vote
1answer
737 views

sudo and chef-solo problems

I'm facing a weird problem when executing chef-solo commands on Ubuntu 10.04. If I execute this (as root): # chef-solo -c /opt/mycorp/mycorp-chef-code/config/solo.rb -j ...
1
vote
1answer
269 views

Rerunning Execute block in chef-solo

I have an execute block that runs an external install script, that I have no power over. That install script sometimes immediately does what I want and at other times first runs an arbitrary number of ...