Questions tagged [cookbook]
24 questions
0
votes
1 answer
How to allow HTTP traffic using chef cookbook?
Previously, I have installed nginx using chef cookbook. Then I did research about firewall rules. For allowing HTTP traffic I have below script.
firewall_rule 'http' do
port 80
protocol :tcp
position 1
command :allow
end
But I am…

Janith
- 223
- 2
- 4
- 8
0
votes
1 answer
How to create dependency between two tasks within a chef cookbook?
I wrote the a Chef cookbook which configures a server in the company.
One of the tasks there is to install an "apt_package" called "pssh" and another task is intended to be run after the pssh package installation takes place.
In reality, the second…

Itai Ganot
- 10,644
- 29
- 93
- 146
0
votes
2 answers
Chef certification check fail "cookbook upload" despite success "knife ssl check"
I had placed crt key from "Distributor", and then checked and successed.
But "knife cookbook upload" failed.
Chef Server
Hostname : "Distributor"
Cent OS 7
chef-server-core-12.4.1-1.el7.x86_64
Workstation(kitchen)
Hostname : "Workstation"
Cent…

user344314
- 1
- 2
0
votes
1 answer
create a chef cookbook from current configuration
Im wondering if its possible with chef (or any other tool like puppet or ansible ...) to create cookbooks from current server configurations.
For example i have a red hat server with an jboss 7 running on it.
Would it be possible to read that…

user3341669
- 31
- 2
0
votes
1 answer
Chef best practices - assessing/picking a cookbook
Obviously, one of the nicest things about Chef is re-using proven components via cookbooks, especially via the wrapper cookbook approach.
However, how do you choose the cookbook to wrap? Some examples which have wasted a ton of my time.
a cookbook…

JL Peyret
- 115
- 6
0
votes
1 answer
knife cookbook site downland with all dependencies
I'm just starting out with chef, and I'm following http://gettingstartedwithchef.com. One thing it suggests is using knife cookbook site download $COOKBOOK_NAME to get community cookbooks. However sometimes they come with dependencies, and I then…

Amandasaurus
- 31,471
- 65
- 192
- 253
0
votes
1 answer
Chef cookbooks marked as executed
I have setup a Chef server in our network that I use to manage several nodes. These nodes have a chef-client installed executing as a daemon every X minutes.
The problem is that every time the client runs, it executes the recipes for all the…

Gonzalo Alvarez
- 36
- 4
0
votes
1 answer
Chef - not able to install sysstat
I am having trouble installing sysstat using a chef (v0.9.8) recipe. Any help or pointers would be greatly appreciated!
I have included my chef recipe towards the end. After running this recipe, I am unable to execute
/etc/init.d/sysstat start
I…
user57888
-1
votes
2 answers
Can we write a chef cookbook to enable epel repository on centos
I have configured 3 centos servers for chefworkstation, chefserver and chefclient. Now I want to install nginx using the cookbook. For that I have below script.
package 'nginx' do
action :install
end
This did not work because there were not…

Janith
- 223
- 2
- 4
- 8