Questions tagged [knife-solo]

Concepts from spatula and littlechef implemented as a knife plugin.

knife-solo adds a handful of commands that aim to make working with chef-solo as powerful as chef-server. It currently adds 5 subcommands to knife:

knife solo init is used to create a new directory structure (i.e. “kitchen”) that fits with Chef's standard structure and can be used to build and store recipes.

knife solo prepare installs Chef on a given host. It's structured to auto-detect the target OS and change the installation process accordingly.

knife solo cook uploads the current kitchen (Chef repo) to the target host and runs chef-solo on that host.

knife solo bootstrap combines the two previous ones (prepare and cook). knife-solo also adds --solo command line option and +knife+ configuration parameter to knife bootstrap that can be used for triggering “knife solo bootstrap” instead of the normal template based chef-client bootstrap.

knife solo clean removes the uploaded kitchen from the target host.

34 questions
1
vote
0 answers

How to get list of recipes by knife solo without cooking them

I get a message like this after knife solo cook nodename. Recipe: nginx::default * user[nginx] action create (up to date) * package[nginx] action install (up to date) * service[nginx] action enable (up to date) * service[nginx] action start…
ironsand
  • 14,329
  • 17
  • 83
  • 176
1
vote
2 answers

How to find nodes by role with knife-solo and chef-solo-search, i.e. search(:node, "role:some_role")?

I'm trying to set up a couple of servers using knife-solo, and I need to use a basic search in a recipe so I can know which servers are implementing a particular role. This seems like the most basic purpose for using search. I am using…
Tom Wilson
  • 797
  • 9
  • 26
0
votes
1 answer

"install.sh: No such file or directory" when execute knife solo prepare

knife solo prepare failed. It seems that there is no permission to create install.sh. Warning: Failed to create the file install.sh: Permission denied bash: install.sh: No such file or directory How do you solve it? $ knife solo prepare -VV…
堀越貴斗
  • 1
  • 1
  • 3
0
votes
1 answer

knife solo fails to prepare Ubuntu ARM Server

Using Knife solo to provision an ARM server with Chef but it silently fails. Verify by checking for chef-solo a command that is required for provisioning a system with Chef. x86 / Succeeding Process - Abridged Bootstrapping Chef... % Total %…
notapatch
  • 6,569
  • 6
  • 41
  • 45
0
votes
3 answers

knife delete command unable to remove weird node

I made a error with the bootstrap command and known I have node called -i and I will like to remove that node: knife node list -i But when I try to run the delete command from knife this is the result: knife node delete -i Error: invalid option:…
Robert
  • 10,403
  • 14
  • 67
  • 117
0
votes
1 answer

not able to configure knife in centos ec2 instance with chef12

I am getting error when i try to configure knife using 'knife configure -i' command. This is the error FATAL: Cannot find subcommand for: 'osc_user configure -i' Can some one help me on this.
Praveen sivadasan
  • 165
  • 1
  • 2
  • 16
0
votes
1 answer

Start Ejabberd as a service

I'm trying to install ejabbered on my CentOs server and start it as a service. I'm able to install it fine but not able to start it as a service. error * service[ejabberd] action enable * service[ejabberd]: No custom command for enable specified…
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
0
votes
1 answer

knife solo is removing cooklbook/docker/recipes/ folder - Docker provisioning with Chef

I am trying to provisione Docker containers with Chef, I am using knife solo and librarian-chef. I get docker cookbook and create a test recipe, but when execute knife solo bootstrap nodo@192.168.150.78 return Enter the password for…
aslheyrr
  • 372
  • 1
  • 4
  • 15
0
votes
1 answer

Unable to start nginx service via Chef

I'm trying to start nginx using chef solo but keep getting the error below. error * service[nginx] action start ================================================================================ Error executing action `start` on resource…
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
0
votes
0 answers

issue with cloning private git repo with chef-solo

I am trying to use chef-solo to pull private git repo. I used following steps to create my setup. Create necessary data bags to encrypt private ssh keys a. create encrypted key file EDITOR=vim knife solo data bag create secret …
0
votes
1 answer

sudo: chef-solo: command not found

I have problem with gem knife-solo. first of all i want to explain my error and investigation about it. First,after i knife solo cook. i got an error with runtime. RuntimeError: Couldn't find Chef >=0.10.4 on myhost. Please run `knife solo prepare…
agstwn21
  • 123
  • 1
  • 14
0
votes
3 answers

knife command can't be used for knife-solo

I use knife-solo to work with chef-solo, but I find I can't use many knife commands except knife solo For example: $ knife role list ERROR: Your private key could not be loaded from /etc/chef/client.pem Check your configuration file and ensure that…
Tony Han
  • 2,130
  • 3
  • 24
  • 37
0
votes
1 answer

curl: (6) Couldn't resolve host 'www.opscode.com'

I've something wrong after do the knife solo prepare. I dont know why this happen. $ knife solo prepare root@url -c solo.rb -i /../path/certificate.pem Bootstrapping Chef... Enter the password for root@url: curl: (6) Couldn't resolve host…
agstwn21
  • 123
  • 1
  • 14
0
votes
1 answer

If I want to use chef to install software,what shoud I do on the server machine

I learn chef recently, and I find the tutorial on the Internet,they install the ruby environment and chef before they install software on the server machine. apt-get -y update apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev…
wcc526
  • 3,915
  • 2
  • 31
  • 29
0
votes
3 answers

How to configure chef rbenv and ruby-build cookbooks?

Although no errors are thrown upon initial deploy using this run-list: "run_list": [ "recipe[ruby_build]", "recipe[rbenv::system_install]", "recipe[main]" ] ... subsequent deploys throw multiple rsync errors like: rsync: delete_file:…
s2t2
  • 2,462
  • 5
  • 37
  • 47