GithubHelp home page GithubHelp logo

isabella232 / vagrant-fifo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from project-fifo/vagrant-fifo

0.0 0.0 0.0 169 KB

Vagrant provider for Project-FiFo

License: Apache License 2.0

Ruby 100.00%

vagrant-fifo's Introduction

vagrant-fifo Vagrant plugin

vagrant-fifo is a Vagrant provider for Project-Fifo

Note: this is under development and is probably broken. Patches welcome.

Installation

From Source

git clone https://github.com/bakins/vagrant-fifo.git
cd vagrant-fifo
gem build vagrant-fifo.gemspec
vagrant plugin install vagrant-fifo-<version>.gem
cd example_box
tar cvzf fifo.box ./metadata.json ./Vagrantfile
vagrant box add fifo fifo.box --provider fifo

From Rubygems

 vagrant plugin install vagrant-fifo

Usage

Check out a chef-repo with a Fifo compatible Vagrantfile, then run "vagrant up"

vagrant up --provider=fifo
vagrant provision
vagrant ssh
vagrant destroy

Example Vagrantfile:

Vagrant.configure("2") do |config|
  config.vm.box = "fifo"

  config.vm.provider :fifo do |fifo|
    fifo.dataset = "ubuntu-12.04"
    fifo.api_url = "http://192.168.1.100/api/v1/"
    fifo.username = "my-username"
    fifo.password = "my-password
    fifo.node_name = "node-name"
    fifo.ssh_username = "root"
    fifo.ssh_private_key_path = "/path/to/my/private/key"
  end
end

You can also use a box url, rather than building the example box on your local machine:

Vagrant.configure("2") do |config|
   config.vm.box = "fifo"
   config.vm.box_url = "http://www.akins.org/vagrant/fifo.box"
   ...
end

Feel free to mirror your own copy of fifo.box

Configuration

The following options are availible. These are used like:

config.vm.provider :fifo do |fifo|
    fifo.dataset = "ubuntu-12.04"
...
end
  • dataset - "OS Image" to use. Can be name or ID
  • api_url - api endpoint for project-fifo installation
  • username - api username
  • password - api password
  • node_name - the project-fifo node\name/alias for this vm- not this is not the hostname
  • ssh_username - username to use for ssh
  • ssh_private_key - ssh private key to use for ssh. This should be the private key for the public key you registered in project-fifo

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Thanks

Based on vagrant-joyent

License

Apache 2

vagrant-fifo's People

Contributors

schisamo 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.