Questions tagged [chef-solo]
93 questions
0
votes
0 answers
AWS Cloudformation OpsWorks Custom Recipe SSH Key
Is there a method to pass a SSH Key through to a Cloudformation script for custom recipes repo when configuring an Amazon Web Services OpsWorks stack besides mangling the newline characters and placing value directly in the JSON script? I've been…
![](../../users/profiles/318014.webp)
J. Lawson
- 86
- 10
0
votes
1 answer
Why the chef recipe cannot read the values from bash environment variables?
This is the content of my shell script:
export TARGET_ROLE=play
vagrant up
I am using the script to export environment variables in order to set some variables inside my chef cookbook
role = ENV['TARGET_ROLE']
Chef::Log.info("Using role…
![](../../users/profiles/12364.webp)
Anthony Kong
- 2,976
- 10
- 53
- 91
0
votes
1 answer
Run community chef cookbook
I want to configure a mailserver on AWS with this cookbook: https://supermarket.chef.io/cookbooks/postfix-dovecot
I have chef-client and chef-dk installed. I have downloaded the package and changed the cookbook attributes with my personal…
![](../../users/profiles/286179.webp)
Luiz Gustavo F. Gama
- 11
- 1
0
votes
0 answers
Chef: Cookbook website not found
I've been following several guides and read thru documentation trying to get knife-solo to provision a VM for me.
Knife solo will work with Berkshelf (used to manage a library of chef cookbooks), so I'm using that as well.
I can successfully prepare…
![](../../users/profiles/118528.webp)
Brian
- 240
- 3
- 16
0
votes
2 answers
Ruby/Chef include_recipe and know variables from parent file?
I am trying to use a local variable in an included file. I get the error that's it's not defined. I am not sure a way to do this, do you? I have a recipe folder with:
recipes/
development.rb
testing.rb
config.rb
development.rb
username…
![](../../users/profiles/121305.webp)
JREAM
- 163
- 1
- 1
- 9
0
votes
1 answer
OpsWorks nginx namespace conflict
I want to deploy one of my cookbooks, nginx-passenger, to opsworks. I've tested the cookbooks locally already using testkitchen and all the recipes and tests passed successfully. However, when using opsworks, the run of nginx-passenger::default…
![](../../users/profiles/260472.webp)
Saith
- 1
- 1
0
votes
2 answers
Chef freezes on vagrant centos box
I have a centos-6.5 box.
Strangely it freezes when I try to request its provision by chef.
Here's a sample of what goes when I try to vagrant provision --debug it
[2014-10-10T20:33:33+00:00] INFO: Processing…
![](../../users/profiles/81297.webp)
Fabricio Buzeto
- 121
- 6
0
votes
1 answer
Execute chef resource multiple times with variables
Consider the following code:
node["cloudwatch"]["alarms"].each do |metric,keys|
script_name = "/root/.cloudwatch/create_cloudwatch_alarm-#{metric}.sh"
template script_name do
source "cloudwatch/create_cloudwatch_EC2_alarm.sh.erb"
owner …
![](../../users/profiles/189347.webp)
DrStrangepork
- 578
- 1
- 8
- 18
0
votes
1 answer
Getting particular server config from Git in Chef Solo
I don't want to use Chef Server as for now, but rather want to leverage Chef Solo. I need to keep configs (attributes and files) of particular servers in a separate Git repo. This is needed to keep cookbooks in an open repo while hiding configs in a…
![](../../users/profiles/147536.webp)
Stanislav Bashkyrtsev
- 124
- 11
0
votes
1 answer
chef remote_file is throwing Encoding::UndefinedConversionError
I have the following in a chef recipe:
remote_file '/tmp/zint-2.4.2.zip' do
source 'https://s3.amazonaws.com/mybucket/zint-2.4.2.zip'
checksum '4dc28641ef79957e9d3f0904a5d56472ef1d66f8529e3deda25537d890a6f8f3'
mode '0664'
action…
![](../../users/profiles/64402.webp)
Josh Nankin
- 722
- 11
- 27
0
votes
1 answer
Git is not working properly when installing with chef
I'm provisioning my servers with Chef. For git I'm using the community cookbook and is installing version 1.8.3.1 in Amazon Linux. However after it gets installed I don't get any output while running git commands as git ls-remote or git clone (also…
![](../../users/profiles/100276.webp)
Luis D Urraca
- 111
- 2
0
votes
1 answer
Installing nginx via chef Role is not applying my changes
I wrote a role to use the default nginx cookbook. The role is not applying any of my attributes. It keeps installing nginx 1.2.1.
{
"name": "nginx",
"json_class": "Chef::Role",
"chef_type": "role",
"override_attributes": {
"nginx": {
…
![](../../users/profiles/216127.webp)
Jumbalaya Wanton
- 133
- 1
- 1
- 5
0
votes
1 answer
Why chef, puppet, ansible, salt, etc.?
The devops tools ecosystem is puzzling to me. Instead of shell scripts that work everywhere everyone in the server orchestration/management space is bolting on their own proprietary formats. Ansible has their YAML playbooks, Puppet has its…
user48335
0
votes
2 answers
Permission to write using 'deploy' user
I'm currently new to Chef and Capistrano. I'm using version 3.x of Capistrano to deploy Rails 4 application.
I have successfully bootstrapped a server using chef solo. One cookbook that I'm using is Nginx.
Back to my simple Rails 4 app, I'm trying…
![](../../users/profiles/191995.webp)
Ben
- 243
- 1
- 3
- 13
0
votes
2 answers
Can I still benefit from using Chef (et al) when I'm not in total control of the server?
I would like to get better control over my deployment environments, but I share the system administration responsibility with an IT department that has their own (not fully automated) processes for bootstrapping VM-instances, managing organization…
![](../../users/profiles/24289.webp)
Daniel
- 165
- 1
- 1
- 8