mirror of
https://github.com/puppetmaster/typhoon.git
synced 2025-07-17 03:01:35 +02:00
Minor cleanup for zones, docs, and outputs
* Spread across all zones, regardless of UP/DOWN state * Remove unused outputs of private IPs
This commit is contained in:
@ -15,9 +15,8 @@ resource "google_dns_record_set" "etcds" {
|
||||
}
|
||||
|
||||
# Zones in the region
|
||||
data "google_compute_zones" "available" {
|
||||
data "google_compute_zones" "all" {
|
||||
region = "${var.region}"
|
||||
status = "UP"
|
||||
}
|
||||
|
||||
# Controller instances
|
||||
@ -25,7 +24,7 @@ resource "google_compute_instance" "controllers" {
|
||||
count = "${var.count}"
|
||||
|
||||
name = "${var.cluster_name}-controller-${count.index}"
|
||||
zone = "${element(data.google_compute_zones.available.names, count.index)}"
|
||||
zone = "${element(data.google_compute_zones.all.names, count.index)}"
|
||||
machine_type = "${var.machine_type}"
|
||||
|
||||
metadata {
|
||||
|
Reference in New Issue
Block a user