Skip to content

Commit

Permalink
chore: uninstall kopia
Browse files Browse the repository at this point in the history
I switched to restic-based backups for everything.
  • Loading branch information
martinohmann committed Dec 7, 2024
1 parent a277a2f commit da53a09
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 45 deletions.
1 change: 0 additions & 1 deletion kubernetes/storage/apps/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ resources:
- ./namespace.yaml
- ./backrest/ks.yaml
- ./filebrowser/ks.yaml
- ./kopia/ks.yaml
- ./minio/ks.yaml
- ./restic/ks.yaml
- ./zot/ks.yaml
28 changes: 0 additions & 28 deletions terraform/authentik/applications.tf
Original file line number Diff line number Diff line change
Expand Up @@ -176,34 +176,6 @@ module "proxy-home-assistant-code" {
auth_groups = [authentik_group.admins.id]
}

module "proxy-kopia-b2" {
source = "./modules/proxy-application"
name = "Kopia (b2)"
icon_url = "https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/kopia.svg"
slug = "kopia-b2"
domain = "18b.haus"
authorization_flow = data.authentik_flow.default-authorization-flow.id
invalidation_flow = data.authentik_flow.default-provider-invalidation-flow.id
auth_groups = [authentik_group.kopia.id]
basic_auth_enabled = true
basic_auth_password_attribute = "kopia_b2_password"
basic_auth_username_attribute = "kopia_b2_username"
}

module "proxy-kopia-local" {
source = "./modules/proxy-application"
name = "Kopia (local)"
icon_url = "https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/kopia.svg"
slug = "kopia"
domain = "18b.haus"
authorization_flow = data.authentik_flow.default-authorization-flow.id
invalidation_flow = data.authentik_flow.default-provider-invalidation-flow.id
auth_groups = [authentik_group.kopia.id]
basic_auth_enabled = true
basic_auth_password_attribute = "kopia_local_password"
basic_auth_username_attribute = "kopia_local_username"
}

module "proxy-longhorn" {
source = "./modules/proxy-application"
name = "Longhorn"
Expand Down
12 changes: 0 additions & 12 deletions terraform/authentik/directory.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,6 @@ resource "authentik_group" "nextcloud" {
attributes = jsonencode({ nexcloud_quota = "10 GB" })
}

resource "authentik_group" "kopia" {
name = "kopia"
is_superuser = false
parent = resource.authentik_group.infra.id
attributes = jsonencode({
kopia_b2_password = module.secrets.data.kopia-b2["KOPIA_SERVER_PASSWORD"]
kopia_b2_username = module.secrets.data.kopia-b2["KOPIA_SERVER_USERNAME"]
kopia_local_password = module.secrets.data.kopia-local["KOPIA_SERVER_PASSWORD"]
kopia_local_username = module.secrets.data.kopia-local["KOPIA_SERVER_USERNAME"]
})
}

resource "authentik_group" "infra" {
name = "infra"
is_superuser = false
Expand Down
2 changes: 0 additions & 2 deletions terraform/authentik/outposts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,5 @@ resource "authentik_outpost" "storage-proxy" {
protocol_providers = [
module.proxy-backrest.id,
module.proxy-filebrowser.id,
module.proxy-kopia-b2.id,
module.proxy-kopia-local.id,
]
}
2 changes: 0 additions & 2 deletions terraform/authentik/secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ module "secrets" {
secrets = {
forgejo = { path = "main/apps/default/forgejo/app/secret.sops.yaml", name = "forgejo-oauth-secret" }
grafana = { path = "main/apps/monitoring/grafana/app/secret.sops.yaml", name = "grafana-secret" }
kopia-b2 = { path = "storage/apps/default/kopia/b2/secret.sops.yaml", name = "kopia-b2-secret" }
kopia-local = { path = "storage/apps/default/kopia/local/secret.sops.yaml", name = "kopia-local-secret" }
kube-web-view = { path = "main/apps/monitoring/kube-web-view/app/secret.sops.yaml", name = "kube-web-view" }
miniflux = { path = "main/apps/default/miniflux/app/secret.sops.yaml", name = "miniflux" }
minio = { path = "storage/apps/default/minio/app/secret.sops.yaml", name = "minio" }
Expand Down

0 comments on commit da53a09

Please sign in to comment.