Add gitea

This commit is contained in:
2025-05-19 22:45:33 +10:00
parent 3ab392b50b
commit f7c4defe7d
5 changed files with 215 additions and 6 deletions

View File

@@ -1,7 +1,3 @@
provider "nomad" {
address = "http://jaglan-beta-m01:4646"
}
terraform {
backend "local" {
path = "./.tfstate/terraform.tfstate"
@@ -14,9 +10,16 @@ terraform {
source = "carlpett/sops"
version = "~> 0.5"
}
postgresql = {
source = "cyrilgdn/postgresql"
}
}
}
provider "nomad" {
address = "http://jaglan-beta-m01:4646"
}
data "sops_file" "secrets" {
source_file = "secrets.enc.json"
}
@@ -72,6 +75,16 @@ resource "nomad_variable" "postgres" {
}
}
provider "postgresql" {
host = "jaglan-beta-m01"
port = 5432
database = "postgres"
username = "postgres"
password = data.sops_file.secrets.data["postgres.postgres"]
sslmode = "disable"
connect_timeout = 15
}
resource "nomad_csi_volume_registration" "unraid_database_dump" {
#Note: Before chaning the definition of this volume you need to stop the jobs that are using it
depends_on = [data.nomad_plugin.smb]