Giter VIP home page Giter VIP logo

lc-tools's Introduction

lc-tools

lc-tools is a set of command line tools to control various clouds. It uses libcloud for cloud related stuff so should support as much cloud providers as libcloud does.

Installation

sudo python setup.py install

Getting started

We will use GoGrid as example.

First, create config file: ~/.lcrc with the following content:

[default]
driver = gogrid
access_id = your_key_id
secret_key = your_password

It is self-explanatory.

When you're done with the configuration file, you can start managing your servers. To list the available image, fire up lc-image-list command in your shell:

lc-image-list|grep -i centos
image CentOS 5.2 (32-bit) w/ RightScale (id = 62)
image CentOS 5.2 (64-bit) w/ RightScale (id = 63)
image CentOS 5.3 (32-bit) w/ None (id = 1531)
image CentOS 5.3 (64-bit) w/ None (id = 1532)

Now, to get a list of available node sizes, do:

lc-sizes-list
size 512MB (id=512MB, ram=512, disk=30 bandwidth=None)
size 4GB (id=4GB, ram=4096, disk=240 bandwidth=None)
size 2GB (id=2GB, ram=2048, disk=120 bandwidth=None)
size 8GB (id=8GB, ram=8192, disk=480 bandwidth=None)
size 1GB (id=1GB, ram=1024, disk=60 bandwidth=None)

So now you know ids of the images and available sizes, you can use them to create a new node like that:

lc-node-add -i 62 -s 1GB -n mynewnode

It will create a centos node (id = 64) of size 1GB (id = '1GB') with name 'mynewnode'.

Now, to get a list of nodes, use:

lc-node-list
100xxx  mynode1     173.204.xx.yy  Running
100xxx  mynode2    173.204.xx.zz  Running

When you're done with the node, you can remove it:

lc-node-do -i node_id destroy

where node_id is an id of the node you want to destroy. If you want to reboot node, just pass 'reboot' argument to this command instead of 'destroy'.

Support

Any feedback is welcome! You can use github to contact me or plain old email: [email protected]

lc-tools's People

Contributors

novel avatar

Stargazers

Eugene Suchkov avatar

Watchers

Eugene Suchkov avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.