Questions tagged [cookbook]

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

510 questions
0
votes
1 answer

Attribute Resolution in Chef

I'm using a chef community cookbook that downloads, installs, a configures an SDK. (Let's call it the blah-sdk.) You just include_recipe 'blah-sdk' and viola, it's installed. It has an attribute specifying the version of the blah-sdk it will…
Marc Swingler
  • 181
  • 10
0
votes
1 answer

Chef-client is unable to find repositories in local mode

I am a beginner on chef and want to automate deployment process. To test a simple script, I have downloaded chefdk. I have created repositories, cookbooks and recipies. Now, I want to run a recipe, I am using the following command: chef-client -z -r…
Darshan Mehta
  • 30,102
  • 11
  • 68
  • 102
0
votes
1 answer

Run arbitrary ruby code in a chef cookbook

I have a simple chef cookbook and all it does is it sets the MOTD on a CentOS machine. It takes the content of the /tmp/mymotd.txt and turns it into the MOTD. I also have a simple ruby script (a full-fledged ruby script) that simply reads the text…
0
votes
0 answers

frame differencing in opencv

I've copied and pasted a frame differencing code from "OpenCV 2 Computer Vision Application Programming Cookbook". but I gave an error at processor.setFrameProcessor( &segmentor);" It's "'VideoProcessor::setFrameProcessor' : cannot convert…
Pedram91
  • 1
  • 2
0
votes
1 answer

Elasticsearch configure heap size with AWS OpsWorks

Is there a way to configure opsworks to set the elasticsearch heap size when it start the instances? I am using this cookbook https://github.com/elastic/cookbook-elasticsearch/ and the custom json doesn't seem to have any property for heap size. I…
0
votes
2 answers

How do I upgrade a Chef SQL Server Cookbook to use Enterprise Edition?

I've got a Chef cookbook from GitHub. It installs SQL Server 2012 Standard Edition. Our DBA has upgraded our database code to utilize features that can only be found on SQL Server 2012 Enterprise Edition. Since this cookbook is used to generate…
GWLlosa
  • 23,995
  • 17
  • 79
  • 116
0
votes
1 answer

chef cookbook for database creation getting error while knife ssh 'sudo chef-client'

I am very new to chef ! I am following learn.chef.io document https://learn.chef.io/manage-a-web-app/ubuntu/apply-and-verify-your-database-configuration/ to create cookbooks for database creation ! Getting following error ! So please help me out…
Ashish Karpe
  • 5,087
  • 7
  • 41
  • 66
0
votes
1 answer

understand how opsworks and custom cookbooks work together

I have my stack on opsworks and app is deploying fine (cake php). Now I have to configure some things like chmod, php versions, etc etc... I'm reading about this but don't know exactly whats the best way to do this. Question 1 - Should I do this…
anderlaini
  • 1,593
  • 2
  • 24
  • 39
0
votes
1 answer

How to add jenkins slave nodes in jenkins master server using Chef cookbook

I need to work on how we can easily add new slave in Jenkins, using chef i.e configuring it with required jdk, chef client, git client etc.I have to write a cookbook for that. Can anybody give a starting point for that. I already have a master…
cloudbud
  • 39
  • 3
  • 8
0
votes
0 answers

Installing MySQL using CHEF

I am installing MySQL on Red hat linux system using chef. I am following this reference of official chef site: https://learn.chef.io/manage-a-web-app/rhel/configure-mysql/ At the end I am getting this error: CHEF::Exception::Package: No version…
Gurmeet
  • 3,094
  • 4
  • 19
  • 43
0
votes
1 answer

How to use Chef LWRP to specify GIT Branch

What we really want is for the deploy LWRP to be able to specify the branch to the GIT. Ideally this is pulled off of an environment attirbute. we are calling it like this : my_deploy 'install my-client-portal' do repo…
Raspberry
  • 63
  • 1
  • 5
0
votes
1 answer

Run a specific Chef recipe on a node after all the recipe on other nodes are completed

I am automating HDP Hadoop Cluster install using Chef on a 3 Node Cluster. I have following recipes, Ambari_Server Ambari_Agent Metastore Blueprint. I want to run blueprint recipe(4) on a specific node only after all the recipe(1,2,3) are…
0
votes
1 answer

Writing custom Chef cookbook to install and run homegrown app

I am new to Chef and am trying to create a simple custom cookbook. I have an executable JAR that I have hosted on a private binary repo, and I'd like my cookbook to install this JAR, configure the server to be able to run the JAR, and then actually…
smeeb
  • 27,777
  • 57
  • 250
  • 447
0
votes
1 answer

Resolving Chef Cookbook Dependencies

I'm following a basic chef tutorial outlined here, which walks you through creating an initial chef-repo with various cookbooks from the supermarket. I'm at the point where I have a hosted chef account set up and I need to upload all my local…
user2490003
  • 10,706
  • 17
  • 79
  • 155
0
votes
1 answer

Setting up private Supermarket Chef

I am setting Private Supermarket on an EC2 driver through test kitchen I am using Omnibus cookbook for this , I have placed the corresponding cookbooks like "packagecloud" "supermarket-omnibus-cookbook" and "chef-server-ingredient" . When I am…
Ishu Gupta
  • 1,071
  • 1
  • 19
  • 43