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
6
votes
1 answer

Turn off verbose_logging for single Chef recipes or resources

I have a recipe which copies a secret_key to my node. Actually the file content is logged into my shell. I want to turn that off for this single recipe, because I don't want the file content to be saved into my shell history. I know that it's…
coderuby
  • 1,188
  • 1
  • 11
  • 26
4
votes
2 answers

Chef: deploy a server with root ssh access disabled?

When we provision new linux servers, we create a new user with sudo rights, and... block root from ssh access And then we proceed to configure the system via the new user account. Of course we do it this way because our logs are full of hostile…
Tom Wilson
  • 797
  • 9
  • 26
2
votes
0 answers

How to set environment for node

I am trying to configure some nodes with specific run_lists depending on environment. So I created environments, then created role and specified env_run_list, and after that created node my_node_ip.json: { "chef_environment": "test", …
Dmytro
  • 2,200
  • 3
  • 20
  • 32
1
vote
2 answers

Mysql Cookbook error RecipeNotFound: could not find recipe client for cookbook mysql

I'm trying to provision a server with a Chef project that relied on an older version of the mysql cookbook (5.6.3). As this particular version is not compatible with anything newer that Ubuntu 14.04, I tried updating to the latest version (8.5.1)…
Daniel Ristic
  • 710
  • 6
  • 16
1
vote
0 answers

SSH::ConnectionTimeout using knife solo

I am trying to test a Chef cookbook using knife solo and vagrant. Using the information provided by vagrant ssh-config, I can connect to my vagrant host as follows: ssh -p 3774 -i /path/to/.vagrant/machines/default/virtualbox/private_key…
James Taylor
  • 6,158
  • 8
  • 48
  • 74
1
vote
1 answer

knife upload cookbook does not find the cookbook name in the path

I am trying to update my cookbook and uploading this to my Chef Server. I am facing this issue: sudo knife cookbook upload demo -VV INFO: Using configuration from /home/centos/chef-repo/.chef/knife.rb ERROR: Could not find cookbook demo in your…
Robert
  • 10,403
  • 14
  • 67
  • 117
1
vote
0 answers

Unable Bootstrap chef client on windows 7

Following are the steps I have performed till now, Installed chef-server and configured v11.0 on Ubuntu 10.04 LTS Installed chefDK 0.17 on windows 7 Fetched certificate on workstation as well as on node from chef server I have also updated hosts…
Abhaya Ghatkar
  • 322
  • 1
  • 5
  • 22
1
vote
1 answer

Conceptual purpose of cookbooks, recipes, and run_lists in Chef

I have read the Chef docs and understand what cookbooks, recipes, and run_lists are, but still find it hard to decide how to organize a project into cookbook(s), recipe(s), and run_lists. What are the conceptual differences between these and in what…
Pedro Cattori
  • 2,735
  • 1
  • 25
  • 43
1
vote
0 answers

ruby installation fails using chef

bootstrapping a node like this: "knife solo cook username@servername" The runlist includes this recipe, rubies.rb. include_recipe 'rvm::system' include_recipe 'rvm::gem_package' rvm_gem "bundler" do ruby_string "ruby-2.1.1" action …
OK999
  • 1,353
  • 2
  • 19
  • 39
1
vote
1 answer

How to reference knife solo site-cookbook files from a chef cookbook

I'm writing a chef cookbook recipe which aims to place a file onto a node server. cookbook_file "/path/to/node/dir/file_name" do source "file_name" owner "ec2-user" group "ec2-user" end I intend to allow a user of this cookbook to…
s2t2
  • 2,462
  • 5
  • 37
  • 47
1
vote
1 answer

Knife-solo warning local cookbook path

When using knife-solo, I've got this warning: "Local cookbook_path '/Users/username/chef-test/cookbooks' does not exist", and cookbooks directory is removed before I knew it. Removing Berksfile, I have no warning message. $ knife -v Chef:…
quadnine
  • 11
  • 3
1
vote
1 answer

Use knife solo with a non-root user with sudo access, without a password

When I use chef knife solo with a non-root user with sudo access, it always asks me that user's password. However, I have turned off password access to that server. $ bundle exec knife solo cook supersecretuser@productionserver -VV Starting…
Jay Mitchell
  • 1,230
  • 11
  • 14
1
vote
2 answers

Why does running "knife solo cook" using Parallel gem give a port error?

We are trying to run a knife solo cook command on remote machines. When we execute the command on each machine sequentially, it works without hiccups. We tried to parallelize this by using the Parallel gem like this: Parallel.each(machines,…
Parimal
  • 316
  • 1
  • 6
1
vote
1 answer

Knife-solo prepare fails

I'm trying to configure a fresh CentOS 6.5 x64 node via knife-solo. But when I run knife solo prepare root@centos I get a strange error. Bootstrapping Chef... % Total % Received % Xferd Average Speed Time Time Time Current …
Almaron
  • 4,127
  • 6
  • 26
  • 48
1
vote
2 answers

Knife solo cook command not working properly

So I'm running Chef-Solo on Ubnuntu 12.04 with a Linux OS on puTTy. My ultimate objective is to deploy an instance of Islandora/Drupal using Chef. However, at the moment, I'm not having much success. Here's the commands I've run: knife solo prepare…
Stephen Fians
  • 311
  • 1
  • 2
  • 5
1
2 3