Skip to content

Commit 762b2ca

Browse files
committed
chore: ionos dns entry creation
1 parent 6a44ad8 commit 762b2ca

4 files changed

Lines changed: 15 additions & 26 deletions

File tree

ionos-infrastructure/providers.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
provider "ionoscloud" {
2-
token = var.ionos_token
2+
# token = var.ionos_token
33
}
44

55
provider "kubernetes" {

ionos-infrastructure/variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,3 @@ variable "bunkerweb_storage_class_name" {
112112
default = "ionos-enterprise-ssd"
113113
description = "StorageClass for BunkerWeb MariaDB and Redis PVCs"
114114
}
115-
116-
variable "ionos_dns_token" {
117-
type = string
118-
sensitive = true
119-
description = "IONOS Cloud DNS API token for Let's Encrypt DNS-01 challenge"
120-
}

modules/buildingblocks/seaweedfs-composition/main.tf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ locals {
77
selected_sub = var.k8s_platform == "azure" ? local.azure_sub : local.ionos_sub
88

99
# Platform-specific configs
10-
storage_class_name = var.k8s_platform == "azure" ? "default" : "ionos-enterprise-hdd"
11-
bunkerweb_cluster_ip = var.k8s_platform == "azure" ? var.az_cluster_ip : var.ionos_cluster_ip
12-
public_ip = var.k8s_platform == "azure" ? var.aks_public_ip : var.ionos_public_ip
10+
storage_class_name = var.k8s_platform == "azure" ? "default" : "ionos-enterprise-hdd"
11+
# bunkerweb_cluster_ip = var.k8s_platform == "azure" ? var.az_cluster_ip : var.ionos_cluster_ip
12+
public_ip = var.k8s_platform == "azure" ? var.aks_public_ip : var.ionos_public_ip
1313

1414
# Let's Encrypt challenge type: Azure uses HTTP (NLB with TLS passthrough), IONOS uses DNS (ALB without TLS passthrough)
1515
lets_encrypt_challenge = var.k8s_platform == "azure" ? "http" : "dns"
@@ -107,13 +107,13 @@ resource "meshstack_building_block_v2" "namespace" {
107107
}
108108
display_name = "Namespace ${local.unique_name}"
109109
inputs = {
110-
namespace = { value_string = local.unique_name }
111-
k8s_platform = { value_single_select = var.k8s_platform }
112-
storage_class_name = { value_string = local.storage_class_name }
113-
seaweedfs_domain = { value_string = "storage.${local.selected_sub}.${local.base_domain}" }
114-
keycloak_domain = { value_string = "keycloak.${local.selected_sub}.${local.base_domain}" }
115-
email_lets_encrypt = { value_string = local.creator_email }
116-
bunkerweb_cluster_ip = { value_string = local.bunkerweb_cluster_ip }
110+
namespace = { value_string = local.unique_name }
111+
k8s_platform = { value_single_select = var.k8s_platform }
112+
storage_class_name = { value_string = local.storage_class_name }
113+
seaweedfs_domain = { value_string = "storage.${local.selected_sub}.${local.base_domain}" }
114+
keycloak_domain = { value_string = "keycloak.${local.selected_sub}.${local.base_domain}" }
115+
email_lets_encrypt = { value_string = local.creator_email }
116+
#bunkerweb_cluster_ip = { value_string = local.bunkerweb_cluster_ip }
117117
allowed_ip_addresses = { value_string = var.allowed_ip_addresses }
118118
redirect_http_to_https = { value_bool = true }
119119
lets_encrypt_challenge = { value_string = local.lets_encrypt_challenge }

modules/buildingblocks/seaweedfs-composition/variables.tf

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
variable "dns_definition_version_uuid" {
2-
type = string
3-
description = "UUID of the DNS building block definition version."
4-
}
5-
61
variable "name" {
72
type = string
83
description = "Base name used for generating resource names."
@@ -62,10 +57,10 @@ variable "az_cluster_ip" {
6257
description = "Private ClusterIP of the BunkerWeb service in Azure Kubernetes Service. Used for internal DNS resolution within the cluster."
6358
}
6459

65-
variable "ionos_cluster_ip" {
66-
type = string
67-
description = "Private ClusterIP of the BunkerWeb service in IONOS Kubernetes cluster. Used for internal DNS resolution within the cluster."
68-
}
60+
# variable "ionos_cluster_ip" {
61+
# type = string
62+
# description = "Private ClusterIP of the BunkerWeb service in IONOS Kubernetes cluster. Used for internal DNS resolution within the cluster."
63+
# }
6964

7065
variable "allowed_ip_addresses" {
7166
type = string

0 commit comments

Comments
 (0)