mirageos

Install OCaml and Opam packages required for MirageOS
Gareth Rushgrove

Gareth Rushgrove

garethr

7,746 downloads

7,746 latest version

5.0 quality score

Version information

  • 0.1.0 (latest)
released Jul 3rd 2019
This version is compatible with:
  • Puppet Enterprise 3.7
  • Puppet >= 3.7.0
  • Ubuntu

Start using this module

Documentation

garethr/mirageos — version 0.1.0 Jul 3rd 2019

Puppet
Forge Build
Status Puppet Forge
Downloads

This Puppet module installs OCaml, relevant libraries from OPAM and MirageOS. This allows you to get on with building Mirage unikernels quickly.

Usage

The module is currently tested on Ubuntu 14.04 and 12.04. You can use it like so:

include mirageos

By default this installs Mirage as root and installs OPAM modules to /usr/local/opam. This can be modified like so:

class { 'mirageos':
  user      => 'vagrant',
  opam_root => '/home/vagrant/.opam',
}

A note on testing

This module features a unit and acceptance test suite. The unit tests can be run with:

bundle install
FUTURE_PARSER=yes bundle exec rake test

This checks the metadata, the syntax of the puppet manifests and runs the unit tests.

In addition the module includes an acceptance testing suite using Test Kitchen. This runs the module on Ubuntu 12.04 and 14.04, asserts that things have been installed successfully and then compiles a unix unikernel and checks it runs successfully. This suite can be run with:

bundle install
bundle exec kitchen test -c=2