Git Product home page Git Product logo

origami's Introduction

origami

A templating engine which complements veewee.

Introduction

veewee makes building virtual machines easy but origami takes a step further and makes the process even easier, especially for those who wish to quickly deploy numbers of VMs that are configured differently. Without origami a typical workflow of a veewee user would be

  1. Choose a template to work with.
  2. veewee define my-CentOS-6.2-server CentOS-6.2-i386-netboot
  3. Modify definition.rb and ks.cfg
  4. veewee build box-name.

By introducing origami it becomes

  1. origami --name CentOS-6.2-i386-server
  2. veewee build CentOS-6.2-i386-server

Thus origami lets you bypass the editing of templates and initiate building a virtual machine immediately. Also, a wrapper for origami and veewee is available!

Configuration

Managing veewee definitions is cumbersome because it requires you to create a configuration (i.e. definition.rb and ks.cfg) on a per-distro basis. On the other hand, origami maintains configurations on a per-option basis. The power of this approach is immense when you need to maintain a long list of VMs. For example, if you want to change what packages are installed on your Oracle-5.8-i386-server, you go to a corresponding yaml file, pkgs.yml, which might look like:

# pkgs.yml
---
Oracle:
  '5.8':
    server:
    - openssh-server
    desktop:
    - openssh-server
    - ruby
  '6':
    typeA:
    - openssh-server
    - git
    typeB:
    - openssh-server
    - git
    - ruby
CentOS:
  '6': ...
    .
    .
Ubuntu:
  '10': ...
    .
    .
    .
SLES:
  '11': ...

and change the corresponding value in the yaml hash. Once you edit all yaml files (which may include boot_cmd_sequence.yml, kickstart_file, and so on), you have a whole ensemble of different flavors of distros that you can start building just from their names. I said 'all' in the previous sentence, but the number of yaml files can be small or large, depending on your needs. You need to create a yaml file for a parameter only if the parameter needs to be varied, and the others, which are fixed for any kind of VM, are specified in a master template. The end result is instead of having an ever-growing number of definitions in your veewee/definitions directory, you just have a fixed number of yaml files to configure installation parameters.

How To

origami was written for seisan-line. The documentation for seisan-line includes how to use origami.

origami's People

Contributors

akumano avatar

Watchers

James Cloos avatar  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.