formatting and a sedops miss

parent 48728eaf
......@@ -288,10 +288,9 @@ module "redis-cache" {
sentinel_data_disk_size = 100
sentinel_data_disk_type = "pd-ssd"
sentinel_machine_type = "${var.machine_types["redis-cache-sentinel"]}"
source = "../../modules/google/generic-stor-redis"
tier = "db"
vpc = "${module.network.self_link}"
source = "../../modules/google/generic-stor-redis"
tier = "db"
vpc = "${module.network.self_link}"
}
##################################
......
......@@ -2,9 +2,8 @@ resource "google_compute_address" "sentinel-static-ip-address" {
count = "${var.sentinel_count}"
name = "${format("%v-sentinel-%02d-%v-%v-static-ip", var.name, count.index + 1 + 120, var.tier, var.environment)}"
address_type = "INTERNAL"
address = "${replace(var.ip_cidr_range, "/\\d+\\/\\d+$/", count.index + 1 + 120)}"
subnetwork = "${google_compute_subnetwork.subnetwork.self_link}"
address = "${replace(var.ip_cidr_range, "/\\d+\\/\\d+$/", count.index + 1 + 120)}"
subnetwork = "${google_compute_subnetwork.subnetwork.self_link}"
}
resource "google_compute_disk" "sentinel_data_disk" {
......@@ -85,7 +84,7 @@ resource "google_compute_instance" "sentinel_instance_with_attached_disk" {
network_interface {
subnetwork = "${google_compute_subnetwork.subnetwork.name}"
address = "${google_compute_address.static-ip-address.*.address[count.index]}"
address = "${google_compute_address.sentinel-static-ip-address.*.address[count.index]}"
access_config = {}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment