Questions tagged [cookbook]

24 questions
7
votes
2 answers

Chef cookbook dependencies of dependencies

This might be a simple question - I am trying to install a cookbook (gitlab) I cloned the cookbook into a folder on my local drive and ran knife cookbook upload gitlab. Immediately it threw an error: Cookbook gitlab depends on cookbook postgresql…
Jeff V
  • 229
  • 3
  • 11
3
votes
2 answers

Customizing Chef cookbooks

I am trying to setup Munin using Chef, and I'm not sure where to put the customizations that are needed. For example, the documentation on Github says to add munin_plugin 'plugin_name', in the client.rb. While this is fine for right now, it seems to…
Cody
  • 163
  • 3
3
votes
2 answers

chef upload cookbook failed with network error

I've created a chef server on a virtual machine (192.168.0.21). The server runs fine on https (this is the last version from the opscode site). knife user list (and the other list commands) run fine, returning the right results (all the…
donald
  • 233
  • 3
  • 10
3
votes
1 answer

A chef recipe to install ruby 1.9.3 system wide without rvm nor rbenv

I'm looking for an Opscode Chef cookbook that installs system-wide Ruby version 1.9.3, patch-level latest at the time of the run_list execution. Have done some research and there is a Brightbox PPA available at least for Ubuntu flavors. I wonder if…
Leo Gallucci
  • 160
  • 9
3
votes
2 answers

setting chef hostname to nodename on/after bootstrap

I do tests atm with Chef and I have a virtual machine which I'm cloning to generate new nodes. I do bootstrap with the knife command and the -N Parameter to give each host a nodename. The Problem is tough, that the hostname on the VM doesn't change…
wintersolutions
  • 143
  • 2
  • 11
3
votes
2 answers

chef assign elastic ip to instance

I am using a custom bash script to spin up/down EC2 instances as needed. The script creates the instance similar to: knife ec2 server create --config .chef/knife.rb with a few other parameters. It creates the instance fine but I want to be able to…
upbeat.linux
  • 275
  • 4
  • 12
2
votes
1 answer

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 installed Maven 2 as expected. Later on I modified my…
user19509
1
vote
1 answer

could not find recipe epel for cookbook yum

i am having trouble with nginx cookbook.. and it dependency on yum-epel. Getting error : " Chef::Exceptions::RecipeNotFound could not find recipe epel for cookbook yum" $ knife cookbook show nginx nginx 2.7.6 2.7.5 2.7.4 1.8.0 $ knife cookbook…
L1opardo
  • 339
  • 2
  • 5
  • 9
1
vote
1 answer

How can I serialize postgresql.conf multiple times during a Chef run when using cookbook postgresql?

I am creating a Chef recipe that does a couple of things, amongst others a big import of data into a Postgresql database. I am using the Supermarket 'postgresql' cookbook which allows me to create a config file via node['postgresql']['config']…
1
vote
0 answers

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 exist on the server: * logstash When I run knife…
mako_reactor
  • 398
  • 4
  • 11
1
vote
1 answer

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 chef run will simply fail. How can I prevent a…
jr42
  • 13
  • 4
1
vote
2 answers

Adding/Enabling windows feature using chef

I am writing chef cookbook to add/enable some of the windows feature. For enabling I am using powershell_script resource and below is the powershell script. Import-Module Servermanager Add-WindowsFeature Print-LPD-Service For some reason, during…
vareda
  • 70
  • 1
  • 7
1
vote
3 answers

Chef Knife Upload Cookbook: Method not Allowed

I'm running Chef server 11 on a CentOS 6 box. Installed via the RPM from Opscode. I set up my workstation on a Windows 7 box. I can run the usual knife client list and get a response, so I'm confident that my server is working correctly. I created a…
drawsmcgraw
  • 45
  • 1
  • 9
1
vote
1 answer

Specify virtualenv python version using Chef's application_python cookbook

I'm using Opscode's application_python cookbook, and trying to deploy a Django application. I need to use Python 2.7 for this project, but it appears that the virtualenv creation is done with python2.6 by default, which I don't plan on installing on…
Brian Hicks
  • 185
  • 1
  • 8
1
vote
1 answer

Problem configuring Cookbooks in chef

I've been trying to setup a chef server and supply it with the cookbooks form the opscode github page http://github.com/opscode/cookbooks.git I've cloned this repo and set it in both my server config and knife config server.rb cookbook_path […
sgargan
  • 235
  • 3
  • 5
1
2