Code Monkey home page Code Monkey logo

vmklet's Introduction

Go Virtual Machine Provisioning Scripting Parser (vmklet)

trevis-ciย Check last build on Travis-CI


Go-Lang Virtual Machine provisioning parser language. This package allow to define provision machine via ssh, docker-compose, awsclient and so on ...

Prerequisites

  • Go (tested with version 1.8)

Goals

Define a virtual machine remote/local provisioner for OS, designed and optimized for vmkube.

What is provided?

Provided features:

  • Scripting language parse

  • Scripting language helper

  • Scripting language command

  • Multi language translator (Ansible, kubecli, AWS CloudFormation, ....)

To compile and run this project you have to check availability of following software:

Architecture

Configuration

Checkout and test this repository

Go in you GOPATH/src folder and type :

 go get github.com/stretchr/testify
 go get github.com/satori/go.uuid
 go get golang.org/x/crypto/ssh/terminal
 go get gopkg.in/yaml.v2
 git clone https://github.com/hellgate75/vmklet.git

or simply :

 go get github.com/stretchr/testify
 go get github.com/satori/go.uuid
 go get golang.org/x/crypto/ssh/terminal
 go get gopkg.in/yaml.v2
 go get github.com/hellgate75/vmklet

Build

It's present a make file that returns an help on the call :

make

Provided Makefile help returns following options :

make [all|init|test|build|exe|run|clean|install]
all: test build exe run
init: get required external packages
test: run unit test
build: build the module
exe: make executable for the module
clean: clean module C objects
run: exec the module code
install: install the module in go libs

Alternatively you can execute following commands :

  • go get github.com/stretchr/testify to download unit test external package
  • go get github.com/satori/go.uuid to download UUID management external package
  • go get golang.org/x/crypto/ssh/terminal to download SSH terminal external package
  • go get gopkg.in/yaml.v2 to download YAML parser
  • go build . to build the project
  • go test to run unit and integration test on the project
  • go run main.go to execute the project
  • go build --buildmode exe . to create an executable command
  • go install to install executable command

Execution

The tool provides an help section, describing commands, sub-commands and has a nested help level for commands details.

The help is available executing :

  • vmklet help General Help
  • vmklet help [command] Detailed Command syntax helper

Parser provides a sample for the expected input format. Import and Export of actions are provided in following file formats:

  • JSON - standard JSON language
  • XML - Untagged and un-described XML format (Pure XML tag sequence, no XML definition or version is accepted).
  • YAML - standard YAML format.

In this release the command list is composed by following keys :

NOT PROVIDED YET

License

Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://opensource.org/licenses/MIT

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

vmklet's People

Contributors

hellgate75 avatar

Watchers

 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.