项目作者: kaorimatz

项目描述 :
Vagrant provider plugin for Scaleway
高级语言: Ruby
项目地址: git://github.com/kaorimatz/vagrant-scaleway.git
创建时间: 2016-08-28T08:25:20Z
项目社区:https://github.com/kaorimatz/vagrant-scaleway

开源协议:MIT License

下载


Vagrant Scaleway Provider

Gem

This is a Vagrant plugin that adds a
Scaleway provider to Vagrant, allowing Vagrant to
control and provision machines in Scaleway.

Features

  • Boot Scaleway servers.
  • SSH into the servers.
  • Provision the servers with any built-in Vagrant provisioner.
  • Minimal synced folder support via rsync.

Prerequisites

Prior to using this plugin, you will first need to create an API token and
identify your organization ID. Please see the following help pages for
instructions.

Installation

Install using standard Vagrant plugin installation methods.

  1. $ vagrant plugin install vagrant-scaleway

Usage

First, make a Vagrantfile that looks like the following:

  1. Vagrant.configure('2') do |config|
  2. config.vm.provider :scaleway do |scaleway, override|
  3. scaleway.organization = 'YOUR_ORGANIZATION_UUID'
  4. scaleway.token = 'YOUR_TOKEN'
  5. scaleway.volumes = [
  6. { id: 'ADDITIONAL_VOLUME_UUID' },
  7. { size: 50_000_000_000 }
  8. ]
  9. override.ssh.private_key_path = '~/.ssh/id_rsa'
  10. end
  11. end

And then run vagrant up and specify the scaleway provider:

  1. $ vagrant up --provider=scaleway

Configurations

Please see the RubyDoc
for the list of provider-specific configuration options.

Development

To work on the vagrant-scaleway plugin, clone this repository out, and use
Bundler to get the dependencies:

  1. $ bundle

If those pass, you’re ready to start developing the plugin. You can test
the plugin without installing it into your Vagrant environment by just
creating a Vagrantfile in the top level of this directory (it is gitignored)
that uses it, and uses bundler to execute Vagrant:

  1. $ bundle exec vagrant up --provider=scaleway

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kaorimatz/vagrant-scaleway.

License

The plugin is available as open source under the terms of the MIT License.