terraform-provider-etcdiscovery

command module
v0.0.0-...-053f2fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2015 License: ISC Imports: 6 Imported by: 0

README

terraform-provider-etcdiscovery

Terraform provider for generating etcd discovery tokens

Circle CI

Installation

  1. Install Terraform.
  2. go get github.com/paperg/terraform-provider-etcdiscovery

Usage

resource "etcdiscovery_token" "foo" { }
resource "etcdiscovery_token" "bar" {
    size = 5
}

output "foo" {
    value = "${etcdiscovery_token.foo.id}"
}

output "bar" {
    value = "${etcdiscovery_token.bar.id}"
}

Interpolate the id attribute into the cloud-init data for your CoreOS instances for the win.

There isn't much else to it. Destroying the token doesn't really do anything other that remove it from Terraform's state so that a new one will be generated on the next run. This means you can terraform apply to create a CoreOS cluster, then terraform destroy to kill it all, then terraform apply to make a new one again and the new cluster will get a new discovery token, which is probably what you wanted.

If you are running your own discovery service then you can configure an alternate URL like this:

provider "etcdiscovery" {
    url = "http://example.com/new"
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL