Added proxy and ZFS drives.

This commit is contained in:
2022-01-07 15:36:23 -05:00
parent 33f267b163
commit 9504e3737d
6 changed files with 64 additions and 19 deletions
+3
View File
@@ -4,6 +4,9 @@ resource "aws_instance" "nodes" {
# TODO Make this a variable.
associate_public_ip_address = true
subnet_id = element(var.subnet-ids, count.index % length(var.subnet-ids))
# Set a private IP if var.private-ips is not empty, otherwise let AWS assign
# the IP.
private_ip = length(var.private-ips) == 0 ? null : element(var.private-ips, count.index)
vpc_security_group_ids = var.security-group-ids
user_data = element(var.user-datas.*.rendered, count.index)
count = var.num-nodes
+6
View File
@@ -21,6 +21,12 @@ variable "num-nodes" {
type = number
}
variable "private-ips" {
default = []
description = "A list of private IP addresses to use for the nodes. If the list is empty then each node will get an IP assigned from AWS."
type = list(string)
}
variable "user-datas" {
description = "A list of cloud-init configs that get applied to their corresponding node."
}