summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/infra.gentoo.org/rsync.tf13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/infra.gentoo.org/rsync.tf b/src/infra.gentoo.org/rsync.tf
index 6c90fba..f856ba2 100644
--- a/src/infra.gentoo.org/rsync.tf
+++ b/src/infra.gentoo.org/rsync.tf
@@ -55,7 +55,8 @@ resource "google_compute_region_instance_group_manager" "rsync-node-mig" {
instance_template = "${google_compute_instance_template.rsync-node-template.self_link}"
update_strategy = "NONE"
region = "us-central1"
- target_size = 1
+ target_size = 1
+ target_pools = ["${google_compute_target_pool.rsync-in2.self_link}"]
}
resource "google_compute_region_autoscaler" "rsync-autoscaler" {
@@ -71,6 +72,16 @@ resource "google_compute_region_autoscaler" "rsync-autoscaler" {
}
}
+resource "google_compute_target_pool" "rsync-in2" {
+ name = "rsync-in2"
+}
+
+//data "google_compute_forwarding_rule" "rsync-dev" {
+// name = "rsync-dev"
+// ip_address = "35.190.132.250"
+// ports = ["873"]
+//}
+
resource "google_compute_firewall" "rsync-in" {
name = "rsync-in"
network = "${google_compute_network.default.self_link}"