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– https://www.opscode.com/chef/install.sh ec2-xx-xx-xxx-xx.compute-1.amazonaws.com Resolving www.opscode.com (www.opscode.com)… 184.106.28.90 ec2-xx-xx-xxx-xx.compute-1.amazonaws.com Connecting to www.opscode.com (www.opscode.com)|184.106.28.90|:443… connected. ec2-xx-xx-xxx-xx.compute-1.amazonaws.com ERROR: cannot verify www.opscode.com’s certificate, issued by ‘/C=US/O=DigiCert Inc/CN=DigiCert Secure Server CA’: ec2-xx-xx-xxx-xx.compute-1.amazonaws.com … Read more

Unable to connect to chef-server

Cannot connect to the chef-server from a workstation. Tried command “knife node list” Network Error: Error connecting to https://<chef-server-address>/nodes – Failed to open TCP connection to <chef-server-address> (getaddrinfo: Name or service not known) Check your knife configuration and network settings Here is my knife file current_dir = File.dirname(__FILE__) log_level :info log_location STDOUT node_name “node-name” client_key … Read more

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 cookbook from OpsCode, and the usage instructions tell me to … Read more

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 template install chef as a gem. Bang! my node is in this point bootstrapped and ready to … Read more

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 Error: Execution of the Windows Script Host failed. (0x800A0007) The vbs file is created by this command: C:\Users\Administrator>( echo.url = WScript.Arguments.Named(“url”) echo.path = WScript.Arguments.Named(“path”) echo.proxy = null echo.Set objXMLHTTP = … Read more

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 /cookbooks/site/apache2, retry 1/5 I’ve tried deleting the whole chef folder under /opt and reinstalling … Read more

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.? Answer I’d suggest taking a look at Spiceweasel. It does many more things that server creation, but you … Read more

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. Answer To add a newly created VM to an existing cloud service when using the “knife azure server … Read more