Merge pull request #33 from TimHeckel/master

Use variable for network region
This commit is contained in:
Karim Naufal 2022-01-30 01:07:05 +01:00 committed by GitHub
commit 0dcecd46f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -16,7 +16,7 @@ resource "hcloud_network" "k3s" {
resource "hcloud_network_subnet" "k3s" {
network_id = hcloud_network.k3s.id
type = "cloud"
network_zone = "eu-central"
network_zone = var.network_region
ip_range = "10.0.0.0/16"
}

View File

@ -7,7 +7,8 @@ private_key = "/home/username/.ssh/id_ed25519"
# These can be customized, or left with the default values
# For Hetzner locations see https://docs.hetzner.com/general/others/data-centers-and-connection/
# For Hetzner server types see https://www.hetzner.com/cloud
location = "fsn1"
location = "fsn1" # change to `ash` for us-east Ashburn, Virginia location
network_region = "eu-central" # change to `us-east` if location is ash
agent_server_type = "cpx21"
control_plane_server_type = "cpx11"
lb_server_type = "lb11"
@ -23,4 +24,4 @@ agents_num = 2
# If you choose to keep the default of "false", you can always use ArgoCD to monitor the CSI and CCM manifest for new releases,
# that is probably the more "vanilla" option to keep these components always updated.
# hetzner_ccm_containers_latest = true
# hetzner_csi_containers_latest = true
# hetzner_csi_containers_latest = true

View File

@ -19,6 +19,11 @@ variable "location" {
type = string
}
variable "network_region" {
description = "Default region for network"
type = string
}
variable "control_plane_server_type" {
description = "Default control plane server type"
type = string