home-cloud/main.tf

55 lines
1.6 KiB
Terraform
Raw Normal View History

2020-04-04 23:23:13 +02:00
locals {
cluster_name = "home-cloud"
2019-05-13 01:05:58 +02:00
}
2021-12-04 22:38:20 +01:00
module "k3s_cluster" {
2020-04-04 23:23:13 +02:00
source = "./k3s_cluster"
name = local.cluster_name
server_image = "ubuntu-18.04"
server_location = "nbg1"
2021-12-03 22:02:57 +01:00
control_server_type = "cx21"
2020-04-04 23:23:13 +02:00
compute_server_type = "cx21"
compute_count = 1
domain = "c.apricote.de"
letsencrypt_email = "julian.toelle97+le@gmail.com"
ssh_keys = [file("./keys/id_terraform")]
hcloud_csi_driver_token = var.hcloud_csi_driver_token
2020-05-06 01:35:52 +02:00
flux_git_url = "git@github.com:apricote/home-cloud-flux"
2021-12-03 22:02:57 +01:00
providers = {
hcloud = hcloud
}
2019-01-30 19:49:47 +01:00
}
2021-12-04 22:38:20 +01:00
module "k3s_cluster_v2" {
source = "./k3s_cluster_v2"
name = local.cluster_name
server_image = "ubuntu-20.04"
server_location = "nbg1"
control_server_type = "cx21"
compute_server_type = "cpx31"
load_balancer_type = "lb11"
install_k3s_version = "v1.22.4+k3s1"
control_count = 1
compute_count = 1
domain = "c2.apricote.de"
ssh_key = file("~/.ssh/id_rsa.pub")
hcloud_ccm_token = var.hcloud_ccm_token
2021-12-05 00:03:54 +01:00
## Flux
2022-01-08 19:05:53 +01:00
github_owner = "apricote"
github_token = var.github_token
github_token_flux_notifications = var.github_token_flux_notifications
repository_name = "home-cloud-flux-v2"
branch = "main"
repository_visibility = "private"
target_path = ""
2022-06-19 14:04:18 +02:00
flux_version = "v0.31.1"
2021-12-05 00:03:54 +01:00
2021-12-04 22:38:20 +01:00
providers = {
hcloud = hcloud
}
}