Remove sectool.json, update mail.tf to ignore annotation changes, and consolidate sensitive variables in secrets.tf

This commit is contained in:
2025-03-23 21:08:18 +01:00
parent 2657388998
commit 6168afdc32
4 changed files with 86 additions and 81 deletions
-7
View File
@@ -1,7 +0,0 @@
{
"provider": "bitwarden",
"bitwarden": {
"api_url": "https://api.bitwarden.eu",
"identity_url": "https://identity.bitwarden.eu"
}
}
+2
View File
@@ -392,6 +392,7 @@ resource "kubernetes_deployment" "dovecot" {
} }
depends_on = [kubernetes_manifest.mail_certificate, kubernetes_service_account.mail_app] depends_on = [kubernetes_manifest.mail_certificate, kubernetes_service_account.mail_app]
lifecycle { lifecycle {
ignore_changes = [spec[0].template[0].metadata[0].annotations]
replace_triggered_by = [ replace_triggered_by = [
kubernetes_config_map.dovecot_config, kubernetes_config_map.dovecot_config,
kubernetes_secret.dovecot_users, kubernetes_secret.dovecot_users,
@@ -504,6 +505,7 @@ resource "kubernetes_deployment" "postfix" {
} }
depends_on = [kubernetes_manifest.mail_certificate, kubernetes_service_account.mail_app] depends_on = [kubernetes_manifest.mail_certificate, kubernetes_service_account.mail_app]
lifecycle { lifecycle {
ignore_changes = [spec[0].template[0].metadata[0].annotations]
replace_triggered_by = [ replace_triggered_by = [
kubernetes_config_map.postfix_config, kubernetes_config_map.postfix_config,
kubernetes_secret.relay_mail_credentials, kubernetes_secret.relay_mail_credentials,
+77
View File
@@ -0,0 +1,77 @@
variable "wordpress_mysql_password" {
description = "MySQL access password"
type = string
sensitive = true
}
variable "mysql_root_password" {
description = "MySQL root password"
type = string
sensitive = true
}
variable "gitea_mysql_password" {
description = "MySQL access password"
type = string
sensitive = true
}
variable "scaleway_access_key" {
description = "Scaleway Access key"
type = string
sensitive = true
}
variable "scaleway_secret_key" {
description = "Scaleway Secret key"
type = string
sensitive = true
}
variable "nextcloud_mysql_password" {
description = "MySQL access password"
type = string
sensitive = true
}
variable "nextcloud_admin_password" {
description = "Nextcloud access password"
type = string
sensitive = true
}
variable "wireguard_private_key" {
description = "Wireguard public key"
type = string
sensitive = true
}
variable "m3uproxy_admin_password" {
description = "M3UProxy access password"
type = string
sensitive = true
}
variable "m3uproxy_secret" {
description = "M3UProxy HMAC secret"
type = string
sensitive = true
}
variable "maxmind_license_key" {
description = "Maxmind license key"
type = string
sensitive = true
}
variable "rustdesk_private_key" {
description = "Rustdesk private key"
type = string
sensitive = true
}
variable "alexpires_me_email_password" {
description = "POP3 password"
type = string
sensitive = true
}
+7 -74
View File
@@ -1,32 +1,6 @@
variable "wordpress_mysql_password" {
description = "MySQL access password"
type = string
}
variable "mysql_root_password" {
description = "MySQL root password"
type = string
}
variable "gitea_mysql_password" {
description = "MySQL access password"
type = string
}
variable "scaleway_access_key" {
description = "Scaleway Access key"
type = string
}
variable "scaleway_secret_key" {
description = "Scaleway Secret key"
type = string
}
variable "scaleway_user_id" { variable "scaleway_user_id" {
description = "Scaleway User Id" description = "Scaleway User Id"
type = string type = string
sensitive = true
} }
variable "scaleway_project_id" { variable "scaleway_project_id" {
@@ -39,63 +13,22 @@ variable "scaleway_organization_id" {
type = string type = string
} }
variable "nextcloud_mysql_password" {
description = "MySQL access password"
type = string
}
variable "nextcloud_admin_password" {
description = "Nextcloud access password"
type = string
}
variable "wireguard_private_key" {
description = "Wireguard public key"
type = string
}
variable "wireguard_public_key" {
description = "Wireguard public key"
type = string
}
variable "m3uproxy_admin_password" {
description = "M3UProxy access password"
type = string
}
variable "m3uproxy_secret" {
description = "M3UProxy HMAC secret"
type = string
}
variable "maxmind_account_id" { variable "maxmind_account_id" {
description = "Maxmind account ID" description = "Maxmind account ID"
type = string type = string
} }
variable "maxmind_license_key" {
description = "Maxmind license key"
type = string
}
variable "rustdesk_private_key" {
description = "Rustdesk private key"
type = string
}
variable "rustdesk_public_key" {
description = "Rustdesk public key"
type = string
}
variable "alexpires_me_email_username" { variable "alexpires_me_email_username" {
description = "POP3 username" description = "POP3 username"
type = string type = string
} }
variable "alexpires_me_email_password" { variable "wireguard_public_key" {
description = "POP3 password" description = "Wireguard public key"
type = string
}
variable "rustdesk_public_key" {
description = "Rustdesk public key"
type = string type = string
} }