cookbook Questions

10

Solved

Usage case: The DevOps team launched a node sometime ago, and my team would like to know what's the version(s) of one/several cookbook(s) being used in the run_list. Our DevOps team is firefightin...
Schaal asked 22/6, 2015 at 18:51

3

I am trying to implement a wrapper cookbook by taking inspiration from How to Write Reusable Chef Cookbooks, Gangnam Style. I wish to install tomcat 7 on my node without manager app. I have created...
Falgout asked 8/1, 2014 at 15:41

4

Solved

I have created a user 'testuser' by using chef. How to make this user as sudo user?
Paroicous asked 7/2, 2017 at 15:22

5

I have installed the PHP Cookbook from opscode and the chef-dotdeb cookbook found at chef-dotdeb so that I can run PHP 5.4 in the vagrant box. I would like to modify some of the default php.ini se...
Inelegancy asked 16/12, 2013 at 14:25

1

Solved

I have cookbook base and cookbook myapp base has 2 recipes - my_java and java_with_custom_stuff in java_with_custom_stuff I want to use the recipe for my_java (same cookbook). something like inc...
Affiance asked 10/8, 2016 at 10:32

3

Let's say I want to use a community cookbook (i.e. http://community.opscode.com/cookbooks/gerrit). So I will download it using 'knife cookbook site download ' and upload to my local chef server. I ...
Bakerman asked 16/5, 2014 at 15:19

2

Solved

In a cookbook I have a library(client_helper.rb). A module is defined inside it. Module name is Client_helper. Here is the module code. module Client_helper # This module contains helper methods ...
Marko asked 25/5, 2016 at 10:36

2

Solved

I am trying develop a cookbook to make a flask app work with gunicorn and nginx. I have been successful to the point that the app is running very well with a local sqlite database, see my cookbook ...
Ancier asked 25/1, 2016 at 22:53

2

Solved

So this might be a little confusing but bear with me. In short I want to loop over all attributes with a certain key value and then insert them into a template if the values are not empty. Here is ...
Performance asked 6/3, 2014 at 20:31

6

I read a solution in the Python Cookbooks for creating a function that only allows name arguments. I wrote my own code to try it out: class Reporter(object): def __init__(self, *, testline=None, ...
Besot asked 11/8, 2015 at 10:56

1

Solved

I have this in my notes that {"run_list":["recipe[[email protected]]"]} is possible to explicitly specify a cookbook version to use in a nodes run_list but i can't get it to work and can't fin...
Dato asked 29/1, 2015 at 4:9

1

Solved

I have long history of a cookbook that has a recipe of the app and is constantly modified. It got to the point where cookbook version is 226. I'm wondering how can upload files to specific cookbook...
Lice asked 10/3, 2015 at 6:39

1

Solved

Some developers who have a good knowledge of querying SQL databases struggle to implement the equivalent query patterns in Cloudant/CouchDB. How can these developers translate their SQL knowledge ...
Towrey asked 5/2, 2015 at 9:5

3

Currently I am using open source chef and having number of nodes chef client is installed. I want the chef client to run in specific intervals. Any good cookbooks out there to configure it.
Trooper asked 26/2, 2014 at 9:19

3

I followed tutorial http://gettingstartedwithchef.com/, chapter 1. My run list is "run_list": [ "recipe[apt]", "recipe[phpap]" ] My default recipe of phpap cookbook include_recipe "apache2" ...
Beaird asked 26/10, 2013 at 21:26

1

Please help me with the recipe to pull the cookbook name and version during the chef-client run. I want to store the values to variables and use as part of my recipe. I am finding difficulty on h...
Resupinate asked 3/4, 2014 at 9:44

1

Solved

I'm developing a cookbook to deploy a simple ROR application. I write an app_helper.rb and put it into the libraries directory of my cookbook, here is the content: module AppHelper def self.find...
Lingerfelt asked 30/12, 2013 at 8:5

2

If we have in Chef cookbook code like: if !File.exists?('/vagrant/project/target/project/WEB-INF") || node[:compile_project] bash "build project" do user "vagrant" cwd "/vagrant/project" code ...
Scum asked 6/1, 2013 at 13:17

1

Solved

I'm using berkshelf to manage cookbooks, chef 11.6.2, and nginx cookbook v 2.0.0 my settings to compile nginx from source: set[:nginx][:source][:modules] = ["http_gzip_static_module", "http_ssl_m...
Ningsia asked 22/10, 2013 at 15:44

1

Solved

Here is an example of a working recipe that loops through an array of website names and creates them in IIS using the function createIisWebsite(). def createIisWebsite(websiteName) iis_site websi...
Terrier asked 7/5, 2013 at 17:27

2

Solved

I am trying to install the fog gem in a chef recipe though the gem installation occurs before the native packages are being installed so the gem installation fails package "libxslt-dev" package "l...
Spendthrift asked 14/3, 2013 at 13:20

2

Solved

I've just discovered Vagrant + Chef and I'm trying to create a simple recipe to install multiple packages on the node. I thought something like this could work (I'm completely new tu ruby): # (Fro...
Scrawly asked 17/3, 2011 at 13:30
1

© 2022 - 2024 — McMap. All rights reserved.