Questions tagged [cookbook]

A cookbook is the fundamental unit of configuration and policy distribution in Chef.

510 questions
0
votes
1 answer

Chef: mysql cookbook does not know root's password after I change it using mysqladmin

I'm new to Chef (configuration management). I use mysql cookbook with all default attributes. Running it makes it generate a random password for root account. I can use the password with node['mysql']['server_root_password']. Then, I change mysql…
0
votes
1 answer

How to deploy two django projects in one git repository with chef?

I have a git repository with two Django 1.5 projects: one for a website, the other for a REST api. The git repository looks like this: api_project/ www_project/ logs/ manage.py my_app_1/ my_app_2/ The manage.py file defaults to…
MiniQuark
  • 46,633
  • 36
  • 147
  • 183
0
votes
1 answer

How can I trigger a chef-solo configuration change

I'm using chef-solo, to avoid the headache of having multiple instance to manage (correct me if you think this is not a good idea) I have defined a 'database' role; I cook it with chef-solo on the target node. Now, I want a way to create new users…
Disco
  • 4,226
  • 11
  • 58
  • 76
0
votes
1 answer

How to use ark on a hosted chef node

i added the ark cookbook in the run list of my hosted chef node. Now i want to use ark in another cookbook, that comes right after the ark cookbook. I included the ark recipe in the recipe of the cookbook that comes right after the ark cookbook. The…
kimminger
  • 13
  • 4
-1
votes
1 answer

Chef Cookbook Recipe action to agree end user License agreement and automate an Installation process

I am a newbie to chef, need some inputs on writing a recipe for allowing the actions that needs user input like "Press 1 to continue", "2 to quit", "3 to redisplay" else an option to do the force continue. In detail,below are the installation steps…
user2083200
  • 9
  • 1
  • 4
-1
votes
2 answers

Understanding chef cookbook snippet

I am not able to interpret the below code in Chef cookbook: systemd_unit '' do action %i[enable start] end I read about systemd_unit from systemd_unit resource. However, how is action determined here? I am trying to convert…
iDev
  • 2,163
  • 10
  • 39
  • 64
-1
votes
1 answer

Python_Cookbook_3rd_Edition 6.12 a Question

Python_Cookbook_3rd_Edition 6.12. Reading Nested and Variable-Sized Binary Structures import struct import itertools def write_polys(filename, polys): # Determine bounding box flattened = list(itertools.chain(*polys)) min_x = min(x for…
ShijieHuo
  • 1
  • 1
-1
votes
1 answer

How to provide attribute value in the template .erb file

How to provide attribute value in a template .erb file qradar_logs/ ├── Berksfile ├── LICENSE ├── README.md ├── attributes │   └── default.rb ├── chefignore ├── files │   └── default │   └── default ├── metadata.rb ├── recipes │   └──…
Anish
  • 21
  • 2
  • 6
-1
votes
1 answer

Error logging in RUBY block in chef

I have the following recipe which has a ruby block. Ideally it is supposed to run a curl command but i have modified it to run as a ruby block using the below URI ruby_block 'Run Curl API' do block do require 'net/http' require 'uri' require…
anish anil
  • 2,299
  • 7
  • 21
  • 41
-1
votes
1 answer

How to create chef recipe to create database and create tables in oracle DB

I'm new to oracle DB and chef. I had created a environment of Solaris OS and installed Oracle 11G DB in that environment using vagrantfile. Now i need to create a database and create tables in that database using chef. Kindly guide me to proceed.
user2439278
  • 1,222
  • 7
  • 41
  • 75
-1
votes
2 answers

python cookbook for beginners?

I know there's a python cookbook, and it seems to be a good one. But it also seems to be aimed more towards intermediate and advanced users. Does anyone know of something along the lines of a python cookbook for beginners? I'd really like some…
FallenSpaces
  • 312
  • 1
  • 4
  • 17
-1
votes
1 answer

chef client ssl error while synchronising cookbooks

I got the following error when I run my chef client. Any idea how to fix it. It appears to increasing the timeout may work. Because it is taking a while to get the cookbooks from the server. Where to increase the timeout? penSSL::SSL::SSLError:…
user88975
  • 610
  • 1
  • 9
  • 18
-2
votes
1 answer

Chef cookbook for firefox how to set auto updates to 'never check for updates'

I am after something like firefox['update'] = "never" equivalent in cookbook recipe for firefox as auto updates is causing issues with selenium tests. Could someone please help?
Lander
  • 31
  • 4
-2
votes
1 answer

Chef cookbook recipe - executing windows batch command

I need help in writing chef recipes. I have some jobs in Jenkins and they are done by Execute Windows batch command. I have to rewrite this commands to chef recipe but I can't become familiar with writing these recipes... I need some example of this…
pulpet112
  • 43
  • 2
  • 10
-3
votes
1 answer

How to launch 100 and more servers in Chef

I am new to chef. I have successfully configured chef workstation and server. So by using this below command I am able to launch only one instance: knife ec2 server create –image ami-cc5af9a5 -i ram.pem –flavor m1.small -x root –groups chef-client…
1 2 3
33
34