Create CoreOS cluster on DigitalOcean by Vagrant
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
Vagrantfile
user-data.yml

README.md

Create CoreOS cluster on DigitalOcean by Vagrant MIT License

Vagrantfile and cloud-config to play with CoreOS on DigitalOcean.

Setup

To use this Vagrantfile, you need some setting.

Environmental variables

You need to set below environmental variables:

export TOKEN="" 
export SSH_KEY_NAME=""

You can get TOKEN from DigitalOcean console (you should make it with read and write autority). SSH_KEY_NAME is your ssh-key registered in DigitalOcean.

etcd token

And you need to generate new etcd token and write it in user-data.yml's etcd.service:

$ curl -w "\n" https://discovery.etcd.io/new

Vagrant-digitalocean plugin

Now (2014.11), vagrant-digitalocean plugin is still 0.7 and we can't use user-data posting. But if you build it by yourself, you can use it.

$ git clone https://github.com/smdahlen/vagrant-digitalocean
$ gem build vagrant-digitalocean.gemspec
$ vagrant plugin install vagrant-digitalocean-0.7.0.gem 

Usage

Decide how many cluste do you up:

$ export NUM_INSTANCES=3

And up it,

$ vagrant up --provider=digital_ocean

Author

tcnksm