Skip to content

Commit

Permalink
Merge pull request #29 from appuio/configurable-lb-flavor
Browse files Browse the repository at this point in the history
Make lb compute flavor configurable
  • Loading branch information
haasad authored Aug 5, 2022
2 parents a7615db + 7d10060 commit 8cddcb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/vshn-lbaas-cloudscale/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ resource "cloudscale_server" "lb" {
count = var.lb_count
name = local.instance_fqdns[count.index]
zone_slug = "${var.region}1"
flavor_slug = "plus-8-2"
flavor_slug = var.lb_flavor
image_slug = "ubuntu-20.04"
server_group_ids = var.lb_count != 0 ? [cloudscale_server_group.lb[0].id] : []
volume_size_gb = 50
Expand Down
6 changes: 6 additions & 0 deletions modules/vshn-lbaas-cloudscale/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ variable "lb_count" {
description = "The number of loadbalancers to create"
}

variable "lb_flavor" {
type = string
default = "plus-8-2"
description = "Compute flavor to use for loadbalancers"
}

variable "control_vshn_net_token" {
type = string
description = "The token is used to register the server with https://control.vshn.net/"
Expand Down

0 comments on commit 8cddcb2

Please sign in to comment.