Questions tagged [knife]

Knife is a command line tool used to interface with Chef.

Knife is a command-line tool that provides an interface between a local chef-repo and the server. It helps the administrator to manages

  • Nodes
  • Cookbooks and recipes
  • Roles
  • Stores of JSON data (data bags), including encrypted data
  • Environments
  • Cloud resources, including provisioning
  • The installation of the chef-client on management workstations
  • Searching of indexed data on the Chef server

The knife quick references can be found in this image.

85 questions
0
votes
1 answer

How can I create a new Azure VM in an existing cloud service with knife azure (Chef)?

I have tried using the "--azure-connect-to-existing-dns" parameter but that doesn't work. I'd like to create Azure VM's, but have them inside an already existing cloud service instead of creating a new cloud service for each new VM.
DonBecker
  • 250
  • 2
  • 10
0
votes
1 answer

Knife ec2 Create

I am successfully running chef server and able to bootstrap server with my chef recipes. I would like to know is there any plugin which we can use to launch multiple servers using knife ec2 create command.?
0
votes
1 answer

ERROR: cannot verify www.opscode.com's certificate

I am using OSS Chef 11.0.4 on Ubuntu 12.04 LTS , while running Knife ec2 create command I am getting below error Bootstrapping Chef on ec2-xx-xx-xxx-xx.compute-1.amazonaws.com ec2-xx-xx-xxx-xx.compute-1.amazonaws.com --2014-02-20 12:26:15-- …
0
votes
1 answer

Knife will no longer download recipes from opscode

My setup is on Mac OS X and using Chef solo Somehow after running: knife configure -i I can no longer download anything when I run: knife cookbook download site apache2 I get back: ERROR: Connection refused connecting to localhost:443 for…
Peter Fox
  • 101
  • 1
0
votes
1 answer

How to update chef with knife solo?

I ran knife solo bootstrap [myserverssh] to initially install recipes on my server. Everything got installed correctly. I then made changes the recipes. I ran knife solo cook [myserverssh] to update my server. Chef however doesn't seem to find the…
iDev247
  • 751
  • 1
  • 12
  • 23
0
votes
1 answer

Chef how to run a run list in filtered node

How to run a run list in several nodes? Now I wrote a script loop those severs and run using knife bootstrap. Is there better way to do it? Like how we use "knife ssh 'id:*', can we run a run list in filtered server
allenwei
  • 71
  • 1
  • 7
0
votes
1 answer

Pass override attribute via command line for chef-solo

For chef-solo, is it possible to pass the override attributes via command line? Because sometimes the attribute is just adhoc decision and is diffent from host to host, e.g. hostname, we don't want to create a json file for the sake of adhoc…
Ryan
  • 5,831
  • 24
  • 72
  • 91
0
votes
1 answer

cscript fails when executed by winrm via but works when executed locally

I'm running the following as a part of chef deployment of a windows server. cscript /nologo C:\chef\wget.vbs /url:http://www.opscode.com/chef/install.msi /path:C:\Users\ADMINI~1\AppData\Local\Temp\chef-client-latest.msi The error I get is: CScript…
sclarson
  • 3,684
  • 22
  • 20
0
votes
2 answers

Provision server with chef-solo as root?

I'm using knife to bootstrap my VM with vanilla Debian 7.0 installation. In bootstrap stage I'm just setting sources.list, updating & upgrading system, then I install buil-essential, rsync and ruby1.9.1 (with rubygems). As a last step, my bootstrap…
srigi
  • 121
  • 1
  • 4
0
votes
1 answer

Spinning up multiple EC2 servers with knife and assigning elastic ips from a pool

I'm wondering how to go about spinning up multiple EC2 servers using knife of the same type, say 4 app servers, and assigning them each an elastic IP from a pool of available Elastic IPs. I have assigned EC2 servers elastic IP's using the ASW…
Adam Duro
  • 101
  • 2
1 2 3 4 5
6