Skip to content

Commit

Permalink
add variable iufnames
Browse files Browse the repository at this point in the history
  • Loading branch information
araman-m committed Nov 6, 2023
1 parent 02ae5e5 commit 88e2587
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
3 changes: 2 additions & 1 deletion terraform/instances-template/instance-iuf.tf
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ resource "aws_autoscaling_group" "autoscaling-splunk-iuf" {
}
tag {
key = "splunkdnsnames"
value = var.iuf
# use iufnames here instead of iuf so we can publish multiple entries (as iuf is a single name)
value = var.iufnames
propagate_at_launch = false
}
tag {
Expand Down
29 changes: 18 additions & 11 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,24 @@ variable "instance-type-iuf-default" {
default = "t3a.small"
}

variable "iuf" {
description = "iuf single name"
type = string
default = "iuf"
}

variable "iufnames" {
description = "iuf dns name(s)"
type = string
default = "iuf if"
}

variable "disk-size-iuf" {
description = "disk size for iuf in G"
type = number
default = 25
}

variable "ihf-nb" {
description = "target intermediate hf number in ASG"
type = number
Expand Down Expand Up @@ -400,17 +418,6 @@ variable "disk-size-std" {
default = 300
}

variable "iuf" {
type = string
default = "iuf3"
}

variable "disk-size-iuf" {
description = "disk size in G"
type = number
default = 35
}

variable "associate_public_ip" {
description = "define if the splunk instances will have a additional public ip (still require autorizing flows on top if applicable) or just use private networks"
type = string
Expand Down

0 comments on commit 88e2587

Please sign in to comment.