Questions tagged [chef-solo]
93 questions
1
vote
1 answer
Chef-solo: how can I install a package mailutils in ubuntu?
I want to install the command line mail in my ubuntu box in Virtual box.
The command line will be sudo apt-get install mailutils.
What is the best to achieve the same via chef-solo? I don't think there is a formula called mailutils.
![](../../users/profiles/12364.webp)
Anthony Kong
- 2,976
- 10
- 53
- 91
1
vote
1 answer
chef-solo with docker: Prevent services from starting during build
I am trying to reuse existing cookbooks within docker containers, but most recipes will start the service during the chef client run (e.g. tomcat, apache2). As chef-solo runs during image creation the chef run will simply fail.
How can I prevent a…
![](../../users/profiles/243749.webp)
jr42
- 13
- 4
1
vote
1 answer
Is there a way to get Opsworks deploy through cache and not by cloning?
Is there a way to get opsworks to deploy by doing git pull instead of git clone every time?
![](../../users/profiles/63225.webp)
Shrinath
- 297
- 1
- 3
- 16
1
vote
0 answers
how should I set passwords securly with chef-solo
I thought that the way to go would be encrypted data-bags but when I finally got them to work on chef-solo I found out that chef looks for a AES key on the machine that I'm provisioning.
In addition though I had to create a new private key in order…
![](../../users/profiles/193747.webp)
Emirikol
- 11
- 2
1
vote
2 answers
Specify Chef provider for windows_feature
I originally asked this question on StackOverflow, but did not receive any working answers: https://stackoverflow.com/questions/18648713/specify-chef-provider-for-windows-feature.
I'm trying to use Chef (chef-solo) to manage my Windows Server 2008…
![](../../users/profiles/143177.webp)
kardeiz
- 185
- 1
- 1
- 9
1
vote
1 answer
How to pass attributes from knife command (ssh)?
Is it possible to attributes from knife command (ssh),
e.g.
knife ssh ‘role:server’ ‘sudo chef-client’ <-- how to pass attributes to remote?
![](../../users/profiles/50774.webp)
Ryan
- 5,341
- 21
- 71
- 87
1
vote
1 answer
Chef server bootstrap fails on Amazon Linux
I am trying to bootstrap chef-server on Amazon Linux 64-bit instance, but for some reason chef-solo gives some errors. It seems that chef can't determine that Amazon Linux is actually a RedHat derivate and use redhat config. Is there any easy…
![](../../users/profiles/112637.webp)
freiksenet
- 111
- 2
1
vote
1 answer
sudo and chef-solo problems
I'm facing a weird problem when executing chef-solo commands on Ubuntu 10.04.
If I execute this (as root):
# chef-solo -c /opt/mycorp/mycorp-chef-code/config/solo.rb -j /opt/mycorp/mycorp-chef-code/config/run_mycorp-config.json
[Tue, 16 Nov 2010…
![](../../users/profiles/2768.webp)
scetoaux
- 1,269
- 2
- 12
- 25
1
vote
1 answer
Rerunning Execute block in chef-solo
I have an execute block that runs an external install script, that I have no power over. That install script sometimes immediately does what I want and at other times first runs an arbitrary number of updates and needs to be called again to do the…
![](../../users/profiles/52797.webp)
ajmurmann
- 439
- 1
- 7
- 8
0
votes
1 answer
chef-solo binary removed after chef upgrade, returns on reinstall
I'm setting up a server configuration for ubuntu trusty that must be compatible with our node configuration using chef-solo.
This is in AWS EC2, and the base node is from the official ubuntu repo in https://cloud-images.ubuntu.com/locator/ec2/
This…
![](../../users/profiles/91332.webp)
RogerFC
- 332
- 1
- 2
- 10
0
votes
1 answer
Chef deploy not working on Ubuntu 14.04 looking for credentials
I am using Ubuntu 14.04 chef-solo stack but since today when I am running the deploy script its giving me below error. Please assist.
==========
ubuntu@i-production-base:~$ sudo /var/chef/scripts/deploy.rb…
![](../../users/profiles/396932.webp)
Chandan Singh
- 34
- 5
0
votes
0 answers
Interpolation in PHP for chef automation
Hi I am using chef for deployment automation of a wordpress site where in I need to read database, host, username and password from my shared.yml for wp-config.php so I am trying below code in my template file
![](../../users/profiles/167266.webp)
Shailesh Sutar
- 1,427
- 4
- 22
- 40
0
votes
1 answer
Chef recipe gives error as undefined method 'split'
Hi I am using below in code in my chef recipe and it works fine with all the other existing servers however it doesn't work well with my new server.
user_array = node
node['user']['user_array_node_attr'].split("/").each do |hash_key|
user_array =…
![](../../users/profiles/167266.webp)
Shailesh Sutar
- 1,427
- 4
- 22
- 40
0
votes
1 answer
How to solve the cookbook naming mismatch between berks and chef-solo?
Follow-up to this answer.
Running chef solo:
sudo chef-solo -c config.rb -j config.json
Starting Chef Client, version 12.16.42
resolving cookbooks for run list:…
![](../../users/profiles/215599.webp)
030
- 5,731
- 12
- 61
- 107
0
votes
3 answers
Rerunning chef after setting PermitRootLogin no
I am configuring my first server at Linode using knife-solo. Everything is working fine but I've just added a step by which I am disabling root login for extra security. My understanding is that whenever I am adding new items to my configuration I…
![](../../users/profiles/380633.webp)
Dionysis
- 103
- 3