mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-24 17:16:15 +01:00
Disable Gitea
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
e852b64b71
commit
dafbab9495
|
@ -1,61 +1,61 @@
|
||||||
resource "nomad_volume" "gitea-db" {
|
# resource "nomad_volume" "gitea-db" {
|
||||||
type = "csi"
|
# type = "csi"
|
||||||
plugin_id = "org.democratic-csi.nfs"
|
# plugin_id = "org.democratic-csi.nfs"
|
||||||
volume_id = "gitea-db"
|
# volume_id = "gitea-db"
|
||||||
name = "gitea-db"
|
# name = "gitea-db"
|
||||||
external_id = "gitea-db"
|
# external_id = "gitea-db"
|
||||||
|
|
||||||
capability {
|
# capability {
|
||||||
access_mode = "single-node-writer"
|
# access_mode = "single-node-writer"
|
||||||
attachment_mode = "file-system"
|
# attachment_mode = "file-system"
|
||||||
}
|
# }
|
||||||
|
|
||||||
context = {
|
# context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
# server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/gitea-db"
|
# share = "/var/nfs/gitea-db"
|
||||||
node_attach_driver = "nfs"
|
# node_attach_driver = "nfs"
|
||||||
provisioner_driver = "node-manual"
|
# provisioner_driver = "node-manual"
|
||||||
}
|
# }
|
||||||
|
|
||||||
mount_options {
|
# mount_options {
|
||||||
fs_type = "nfs"
|
# fs_type = "nfs"
|
||||||
mount_flags = [ "nfsvers=3", "nolock", "async" ]
|
# mount_flags = [ "nfsvers=3", "nolock", "async" ]
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
resource "nomad_volume" "gitea-data" {
|
# resource "nomad_volume" "gitea-data" {
|
||||||
type = "csi"
|
# type = "csi"
|
||||||
plugin_id = "org.democratic-csi.nfs"
|
# plugin_id = "org.democratic-csi.nfs"
|
||||||
volume_id = "gitea-data"
|
# volume_id = "gitea-data"
|
||||||
name = "gitea-data"
|
# name = "gitea-data"
|
||||||
external_id = "gitea-data"
|
# external_id = "gitea-data"
|
||||||
|
|
||||||
capability {
|
# capability {
|
||||||
access_mode = "single-node-writer"
|
# access_mode = "single-node-writer"
|
||||||
attachment_mode = "file-system"
|
# attachment_mode = "file-system"
|
||||||
}
|
# }
|
||||||
|
|
||||||
context = {
|
# context = {
|
||||||
server = "blowhole.hosts.in.redalder.org"
|
# server = "blowhole.hosts.in.redalder.org"
|
||||||
share = "/var/nfs/gitea-data"
|
# share = "/var/nfs/gitea-data"
|
||||||
node_attach_driver = "nfs"
|
# node_attach_driver = "nfs"
|
||||||
provisioner_driver = "node-manual"
|
# provisioner_driver = "node-manual"
|
||||||
}
|
# }
|
||||||
|
|
||||||
mount_options {
|
# mount_options {
|
||||||
fs_type = "nfs"
|
# fs_type = "nfs"
|
||||||
mount_flags = [ "nfsvers=3", "nolock", "async" ]
|
# mount_flags = [ "nfsvers=3", "nolock", "async" ]
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
resource "vault_policy" "gitea-policy" {
|
# resource "vault_policy" "gitea-policy" {
|
||||||
name = "gitea-policy"
|
# name = "gitea-policy"
|
||||||
policy = <<EOF
|
# policy = <<EOF
|
||||||
path "kv/data/gitea" {
|
# path "kv/data/gitea" {
|
||||||
capabilities = ["read"]
|
# capabilities = ["read"]
|
||||||
}
|
# }
|
||||||
EOF
|
# EOF
|
||||||
}
|
# }
|
||||||
|
|
||||||
# resource "nomad_job" "gitea" {
|
# resource "nomad_job" "gitea" {
|
||||||
# jobspec = file("${path.module}/job/gitea.hcl")
|
# jobspec = file("${path.module}/job/gitea.hcl")
|
||||||
|
|
Loading…
Reference in a new issue