Giter Site home page Giter Site logo

addon-knife's Introduction

knife plugin for opennebula

Description

This plugin gives knife the ability to create, bootstrap, and manage OpenNebula Virtual Machines

Development

To contribute bug patches or new features, you can use the github Pull Request model. It is assumed that code and documentation are contributed under the Apache License 2.0.

More info:

Authors

Compatibility

This add-on is compatible with OpenNebula 4.4, 4.6. Tested extensively with 4.6 (EC2)

Requirements

Chef

Hosted Chef 11.0.x (or) On Premises Chef (http://www.getchef.com/chef/choose-your-version/) configured with a client.

For more information about Chef

Installation

To install the plugin you need to do the following in your workstation:

  • gem install chef
  • gem install opennebula
  • gem install knife-opennebula

Configuration

Configuration can be done either of any three ways.

1. Configuring the ENV variables

  • export OPENNEBULA_USERNAME="MY_OPENNEBULA_USERNAME"

  • export OPENNEBULA_PASSWORD="MY_OPENNEBULA_PASSWORD"

  • export OPENNEBULA_ENDPOINT="MY_OPENNEBULA_ENDPOINT"

2. Configuring knife.rb

  • knife[:opennebula_username] = "MY_OPENNEBULA_USERNAME"

  • knife[:opennebula_password] = "MY_OPENNEBULA_PASSWORD"

  • knife[:opennebula_endpoint] = "MY_OPENNEBULA_ENDPOINT"

3. Configure while running commands by passing options

  • -A or --username -> OPENNEBULA_USERNAME
  • -K or --password -> OPENNEBULA_PASSWORD
  • -e or --endpoint -> OPENNEBULA_ENDPOINT

Specific command options can be found by invoking the subcommand with a --help flag

Usage

This plugin provides the following Knife subcommands. Specific command options can be found by invoking the subcommand with a --help flag

To list the virtual resource templates

knife opennebula template list

To list the virual machines

knife opennebula server list

To create a virtual machine by instantiating a template

knife opennebula server create

To undeploy and delete a virtual machine

knife opennebula server delete SERVER_NAME

eg:

knife opennebula template list -A OPENNEBULA_USERNAME -K OPENNEBULA_USER_PASSWORD -e http://my-opennebula.com:2633/RPC2

knife opennebula server create -A OPENNEBULA_USERNAME -K OPENNEBULA_USER_PASSWORD -e http://my-opennebula.com:2633/RPC2 -t MY_TEMPLATE_NAME -i IDENTITY_FILE -x USER -r 'role[test]' -N TEST1 -n TEST1

knife opennebula server list -A OPENNEBULA_USERNAME -K OPENNEBULA_USER_PASSWORD -e http://my-opennebula.com:2633/RPC2

knife opennebula server delete SERVER_NAME -A OPENNEBULA_USERNAME -K OPENNEBULA_USER_PASSWORD -e http://my-opennebula.com:2633/RPC2 -P -N NODE_NAME

addon-knife's People

Stargazers

 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.