Questions tagged [chef-solo]
92 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.

Anthony Kong
- 3,288
- 11
- 57
- 96
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…

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?

Shrinath
- 297
- 1
- 3
- 18
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…

Emirikol
- 111
- 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…

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?

Ryan
- 5,831
- 24
- 72
- 91
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…

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…

scetoaux
- 1,289
- 2
- 12
- 26
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…

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…

RogerFC
- 344
- 1
- 2
- 11
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…

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

Shailesh Sutar
- 1,517
- 5
- 23
- 41
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 =…

Shailesh Sutar
- 1,517
- 5
- 23
- 41
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:…

030
- 5,901
- 13
- 68
- 110
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…

Dionysis
- 103
- 3