knife server create- finding lists of flavors

Posted by JohnMetta on Server Fault See other posts from Server Fault or by JohnMetta
Published on 2011-01-24T18:52:35Z Indexed on 2011/02/20 15:27 UTC
Read the original article Hit count: 346

I'm new to Chef and I think I'm missing something in reading the docs. I want to create servers using

knife server create (options)

but can't seem to find fully complete documentation on the options. Specifically, how do I find a mapping of server flavors to whatever knife is looking for?

Given the official wiki entry for "Launch Cloud Instances with Knife," the following is an example server creation on Rackspace:

knife rackspace server create 'role[webserver]' --server-name server01 --image 49 --flavor 2

Likewise, on the Knife Man Page, there are commands for EC2 server images (using --d --distro DISTRO) and for Slicehost servers (using -f --flavor FLAVOR)

However, what none of the documentation I've found describes is how to translate what I want to build on Rackspace ("I want Ubuntu 10.04 LTS") to what the integer entry that knife is seeking.

It strikes me that, given the lack of a description in the documentation for how to find the flavor, this should be obvious. Thus, I think I'm missing something.

© Server Fault or respective owner

Related posts about cloud-hosting

Related posts about chef