A cookbook is the fundamental unit of configuration and policy distribution in Chef.
Questions tagged [cookbook]
510 questions
0
votes
1 answer
How to Start resque workers through Chef cookbook?
I am a newbie to Chef and I want to restart resque workers on a cloud node after every deployment through my recipe. There is a Rake task which resque provides to start the workers
QUEUE='*' bundle exec rake environment resque:work >>/log/resque.log…

Infant Dev
- 1,659
- 8
- 24
- 48
0
votes
2 answers
Meet "uninitialized constant #::Chef::Resource::CookbookFile" when running chef-client
I am using Chef 11.10.0.
I implement a new resource called MyCookbookFile which inherits Chef::Resource::CookbookFile.
And, I am not going to change the provider this moment (So Chef::Provider::CookbookFile will be used).
require…

Simon Ho
- 35
- 9
0
votes
1 answer
Wrapper cookbook and cookbook_file resource gives FileNotFound error
If my base cookbook is something like this:
SSLCERT = node[:site][:SSLCert]
cookbook_file SSLCert do
path "c:/tmp/#{SSLCert}"
action :create_if_missing
end
And my wrapper has
override[:site][:SSLCert] = "cert.pfx"
I would like to specify…

Jim
- 61
- 6
0
votes
1 answer
cogent.db.ensembl cookbook's example of .getGeneByStableId() returns 'ProgrammingError'
I get an error using PyCogent to query EnsEMBl's database - could this bug result from updates in EnsEMBL or PyCogent?
When trying to reproduce the code for the PyCogent Cookbook's Querying Ensembl doc page ("Selecting Gene's" section) I get…

hello_there_andy
- 2,039
- 2
- 21
- 51
0
votes
1 answer
How to redirect output of Windows batch scripts inside a Chef Coobkook into a file?
For example in this simple cookbook recipe:
batch "Clear_OS_Agent" do
code <<-EOH
@echo on
dir C:\
@echo off
EOH
action :run
When I run chef-client.bat on a Windows node, I can get the result of dir C:\
But when I redirect in into a…

David Young
- 81
- 8
0
votes
1 answer
Problems running cassandra 1.1.9 with Java Oracle 7
I am new to cassandra and I am trying to make an installation of cassandra 1.1.9 with JAVA oracle 7 but I am getting the following error:
cassandra -f
xss = -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities…

bonzofenix
- 635
- 5
- 12
0
votes
1 answer
Berkfile's dependencies on vagrant's local machine
So, im new on vagrant, chef, berkshelf and similar helper's on this way.
I'm just trying to figure out why my vagrant (up, reload, provision) commands keep saying it's:
[Berkshelf] Using central (0.1.0)
[Berkshelf] Using postgresql…

Oswaldo Ferreira
- 1,339
- 16
- 15
0
votes
1 answer
knife bootstrap ip-10-185-211-254.ec2.internal -x ubuntu -i JP_Key.pem —sudo -r “role[webserver]”
I have created a cookbook and signed a role. When I do
knife bootstrap ip-10-185-211-254.ec2.internal -x ubuntu -i JP_Key.pem —sudo -r "role[webserver]"
I'm getting the following error:
ERROR: Network Error: getaddrinfo: Temporary failure in name…

Suresh Sala
- 425
- 1
- 6
- 17
0
votes
1 answer
Symfony - Cookbook "add new tag" in embed form isn't working
I've followed the Symfony cookbook part called "How to Embed a Collection of Forms" and added this javascript function to have a link that adds a new tag field. The form is right, displaying the Task description field and one Tag name field.
When I…
user2094540
0
votes
2 answers
Vagrant-Chef roles: chef-solo not finding roles in my cookbook
I have a bunch of cookbook files, some defined as recipes and some defined as roles. So for example the top level role is:
run_list(
"role[el-drupal-cookbook::drupal_lamp_dev]" ,
"recipe[drupal-site-jnl-el-cookbook::default]"
)
The intent of…

rivimey
- 921
- 1
- 7
- 24
0
votes
1 answer
Error executing action `install` on resource 'package[libmysqlclient-dev]'
I am bootstrapping a ec2 ubuntu 13.04 instance using chef. I am using this cookbook. But I am getting following error and the bootstrapping stops doesn't continue.
apt-get -q -y install libmysqlclient-dev=5.5.32-0ubuntu0.13.04.1 returned 100,…

Jeevan Dongre
- 4,627
- 13
- 67
- 129
0
votes
1 answer
Chef: samba cookbook error: No version specified, and no candidate version available for smbclient
When running the opscode samba cookbook I get this error, I have set up my users data bag, my shares data bag as well as my samba user as described in the samba cookbook usage, but still get this message.
[2013-09-18T10:56:22-05:00] INFO: *** Chef…

Anthony
- 1
- 2
0
votes
1 answer
Recipe from Python Cookbook
I'm trying to implement a recipe from O'Reilly's Python Cookbook (2nd ed.) and a small portion of the recipe doesn't work as it should. I was hoping someone could help me figure out why.
The recipe is "5.14: Enhancing the Dictionary Type with…

user2452665
- 3
- 2
0
votes
1 answer
Vagrant: easy way to define custom Chef service or boot script
I have a Vagrant project which defines a couple of VMs. On one of them I need to run some commands to tune kernel parameters, download a file from a remote location, and start a daemon. Currently I define in a cookbooks/*/recipes/default.rb:
execute…

Jesse Glick
- 24,539
- 10
- 90
- 112
0
votes
2 answers
Can't knife ec2 server create for Australian region
Setting up this service for a client in Australia. Running the below command works for the US default region, when I try for the Australian (ap-southeast-2) region I get an error I can't debug.
knife ec2 server create -G…

Nathan Keller
- 1,524
- 3
- 13
- 17