ansible: added option to provide accounts for genesis generation, terraform: added option to secure DigitalOcean servers, devops: added DNS name creation to tendermint terraform

This commit is contained in:
Greg Szabo
2017-06-08 18:57:48 +00:00
parent d184ca1432
commit 92f10e9206
30 changed files with 223 additions and 87 deletions
@@ -0,0 +1,31 @@
#resource "digitalocean_floating_ip" "cluster" {
# droplet_id = "${element(digitalocean_droplet.cluster.*.id,count.index)}"
# region = "${element(digitalocean_droplet.cluster.*.region,count.index)}"
# count = "${var.servers}"
#}
provider "aws" {
}
data "aws_route53_zone" "cluster" {
name = "testnets.interblock.io."
}
resource "aws_route53_record" "cluster-node" {
zone_id = "${data.aws_route53_zone.cluster.zone_id}"
name = "${var.name}-node${count.index}"
type = "A"
ttl = "300"
records = ["${element(digitalocean_droplet.cluster.*.ipv4_address,count.index)}"]
count = "${var.servers}"
}
resource "aws_route53_record" "cluster-regions" {
zone_id = "${data.aws_route53_zone.cluster.zone_id}"
name = "${var.name}-${element(digitalocean_droplet.cluster.*.region,count.index)}"
type = "CNAME"
ttl = "300"
records = ["${element(aws_route53_record.cluster-node.*.name,count.index)}.${data.aws_route53_zone.cluster.name}"]
count = "${var.servers}"
}
@@ -0,0 +1,4 @@
#output "floating_ips" {
# value = "${module.cluster.floating_ips}"
#}