Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/niedbalski/maasive
- Owner: niedbalski
- Created: 2014-04-15T14:28:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-12T20:15:46.000Z (over 9 years ago)
- Last Synced: 2024-10-15T08:32:59.132Z (3 months ago)
- Language: Python
- Size: 178 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
passdef 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