https://github.com/remedyit/inprovise-vbox
VBox script extension for Inprovise schemes
https://github.com/remedyit/inprovise-vbox
Last synced: 2 months ago
JSON representation
VBox script extension for Inprovise schemes
- Host: GitHub
- URL: https://github.com/remedyit/inprovise-vbox
- Owner: RemedyIT
- Created: 2016-09-08T09:55:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-02-01T09:35:27.000Z (over 4 years ago)
- Last Synced: 2025-02-13T08:52:47.880Z (4 months ago)
- Language: Ruby
- Size: 33.2 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Inprovise Virtual Box
=====================This project implements an extension for the Inprovise provisioning tool providing `vbox` scripts for installing
Libvirt based virtual machine instances.This is not a really general purpose plugin nor is it intended to be. This plugin is very much tailored to our particular
requirements which are pretty simple in this area. Currently we only use libvirt based virtualization and hvm (fully virtualized)
type virtual machines.
However, this plugin gives a good example of the ease with which such an Inprovise plugin can be created using mostly the
basic functionality provided by Inprovise itself.Installation
------------$ gem install inprovise-vbox
Usage
-----Add the following to (for example) your Inprovise project's `rigrc` file.
````ruby
require 'inprovise/vbox'
````Syntax
------````ruby
vbox 'myvm' doconfiguration ({
:name => 'MyVM',
:image => '/remote/image/path',
:memory => 1024,
:cpus => 2
})end
````When applying this script for a target VM host node it will automatically create a (libvirt based, hvm type) virtual machine instance `MyVM`
on the specified host and define a new Inprovise infrastructure node if the installation was successful.Optionally user defined `apply`, `revert` and/or `validate` blocks can be added to provide additional (custom)
processing.