Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/niedbalski/maasive

A tool for deploy/commision large amounts of KVM guests on MaaS.
https://github.com/niedbalski/maasive

Last synced: about 1 month ago
JSON representation

A tool for deploy/commision large amounts of KVM guests on MaaS.

Awesome Lists containing this project

README

        

Maasive
=======

A tool for deploy/commision large amounts of KVM guests on MaaS.

Install
=======

```
sudo apt-get install libxml2-dev libxslt-dev libvirt-dev python-maas-client
pip install git+https://github.com/niedbalski/maasive.git#egg=maasive
```

Example
========

This example will start 50 KVM guests and then register them for commisioning
on the specified MAAS server.

```python
#!/usr/bin/env python
# -*- coding: utf-8 -*-

__author__ = 'Jorge Niedbalski R. '

from maasive.loader import Loader

import logging

logger = logging.getLogger(__name__)

def on_failure(driver, instances):
#this callback will be invoked on failure, you can
#abort the whole installation if you want.
pass

def main():
loader = Loader("qemu:///system",
"ASs3XccLNUPU7qM9jU:WmXp28J8vVHrX52St8:Kjg468ZxVewKHMbKNpnQBvy6FcRk3KFC",
"http://localhost:8000/MAAS/api/1.0/")

loader.get_instances(50, {
'architecture': 'amd64',
'prefix': "jujustack",
'memory': 512,
'cpus': 2,
'disk': 1
}, on_failure=on_failure)

if __name__ == "__main__":
main()
```

Todo
====

* CLI interface
* Better logging
* Tests