-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'list_my_objects_feature'
- Loading branch information
Showing
3 changed files
with
303 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,45 @@ | ||
ezmomi | ||
====== | ||
|
||
A simple command line interface for common VMware vSphere tasks such as: | ||
|
||
* deploying VMs from a template | ||
* ...more to come! | ||
|
||
A simple command line interface for common VMware vSphere tasks. | ||
|
||
EZmomi uses [pyvmomi](https://github.com/vmware/pyvmomi) (VMware vSphere API Python Bindings). | ||
|
||
|
||
#### Example Usage | ||
|
||
#### Example Usage | ||
|
||
Deploy a new VM with two static IPs: | ||
|
||
Clone a template with two static IPs: | ||
|
||
``` | ||
./ezmomi.py --hostname foo01 --cpus 2 --mem 4 --ips 172.10.16.203 172.10.16.204 | ||
./ezmomi.py clone --hostname foo01 --cpus 2 --mem 4 --ips 172.10.16.203 172.10.16.204 | ||
``` | ||
|
||
`ips` takes any number of ips. | ||
|
||
Get info about available resources, e.g.: | ||
|
||
``` | ||
./ezmomi.py list --type Network | ||
./ezmomi.py list --type Datastore | ||
./ezmomi.py list --type Datastore | ||
``` | ||
|
||
See [Managed Object Types](http://pubs.vmware.com/vsphere-50/index.jsp#com.vmware.wssdk.apiref.doc_50/mo-types-landing.html) in the vSphere API docs for a list of types to look up. | ||
|
||
#### Help | ||
|
||
Each command section has its own help: | ||
|
||
``` | ||
./ezmomi.py --help | ||
./ezmomi.py clone --help | ||
./ezmomi.py list --help | ||
``` | ||
|
||
#### Install/Setup | ||
|
||
I'm working on making this available via pip, but currently you can just clone via github: | ||
|
||
``` | ||
git clone [email protected]:snobear/ezmomi.git | ||
|
@@ -35,11 +51,5 @@ mv config.yml.example config.yml | |
|
||
Then define your credentials, networks, and VMware objects in config.yml and you're all set. | ||
|
||
Eventually the install will be a python module on pypi that you can install via pip. (anyone want to tackle that?) | ||
|
||
|
||
#### Contributing | ||
Don't hesitate to file any bugs or feature requests, and of course pull requests are more than welcome. | ||
|
||
|
||
|
||
Pull requests, bug reports, and feature requests are extremely welcome. |
Oops, something went wrong.