github.com/naphatkrit/deis@v1.12.3/contrib/digitalocean/deis-digitalocean.tf (about) 1 provider "digitalocean" { 2 token = "${var.token}" 3 } 4 5 resource "digitalocean_droplet" "deis" { 6 count = "${var.instances}" 7 image = "coreos-stable" 8 name = "${var.prefix}-${count.index+1}" 9 region = "${var.region}" 10 size = "${var.size}" 11 backups = "False" 12 ipv6 = "False" 13 private_networking = "True" 14 ssh_keys = ["${var.ssh_keys}"] 15 user_data = "${file("${path.module}/../coreos/user-data")}" 16 } 17 18 output "msg" { 19 value = "Your hosts are ready to go! Continue following the documentation to install and start Deis. Your hosts are: ${join(", ", digitalocean_droplet.deis.*.ipv4_address)}" 20 } 21 22 output "ip" { 23 value = "${digitalocean_droplet.deis.0.ipv4_address}" 24 }