Skip to content

Commit

Permalink
feat: new var wg_flavor_id to set Wireguard Server Flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
eumel8 committed Jun 27, 2022
1 parent cf6cb35 commit ae4e5c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ resource "opentelekomcloud_compute_instance_v2" "wireguard" {
count = var.deploy_wireguard ? 1 : 0
name = "${var.environment}-wireguard"
availability_zone = var.availability_zone1
flavor_id = var.flavor_id
flavor_id = var.wg_flavor_id
key_pair = opentelekomcloud_compute_keypair_v2.k3s-server-key.name
security_groups = ["${var.environment}-secgroup-wg"]
user_data = local.wireguard
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ variable "deploy_wireguard" {
type = bool
}

variable "wg_flavor_id" {
description = "ID of Wireguard Flavor"
default = "c3.large.2"
}

variable "wg_server_address" {
description = "Ip address of the Wireguard Server"
default = "10.2.0.1/24"
Expand Down

0 comments on commit ae4e5c5

Please sign in to comment.