70 lines
1.9 KiB
Terraform
70 lines
1.9 KiB
Terraform
|
|
variable "forgejo_host" {
|
||
|
|
description = "Forgejo base URL used by Terraform to manage Forgejo resources."
|
||
|
|
type = string
|
||
|
|
default = "https://forge.quorate.internal"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "organization_name" {
|
||
|
|
description = "Forgejo organization that owns the GitOps repository."
|
||
|
|
type = string
|
||
|
|
default = "quorate"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "organization_full_name" {
|
||
|
|
description = "Display name for the Forgejo organization."
|
||
|
|
type = string
|
||
|
|
default = "Quorate"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "repository_name" {
|
||
|
|
description = "Forgejo repository name used as Flux's Git source."
|
||
|
|
type = string
|
||
|
|
default = "cluster"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "repository_description" {
|
||
|
|
description = "Description for the Flux GitOps repository."
|
||
|
|
type = string
|
||
|
|
default = "Declarative cluster state."
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "repository_default_branch" {
|
||
|
|
description = "Default branch for the Flux GitOps repository."
|
||
|
|
type = string
|
||
|
|
default = "master"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "flux_git_deploy_key_title" {
|
||
|
|
description = "Title of the Forgejo deploy key Flux uses for Git-over-SSH."
|
||
|
|
type = string
|
||
|
|
default = "flux-system"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "flux_git_ssh_known_hosts" {
|
||
|
|
description = "SSH known_hosts entries Flux should trust for the Forgejo SSH endpoint."
|
||
|
|
type = string
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "vault_kv_mount" {
|
||
|
|
description = "Vault KV v2 mount where the Flux Git deploy key is mirrored."
|
||
|
|
type = string
|
||
|
|
default = "secret"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "forgejo_admin_vault_path" {
|
||
|
|
description = "Vault KV path containing the Forgejo admin API token used by Terraform."
|
||
|
|
type = string
|
||
|
|
default = "forgejo/terraform-admin"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "forgejo_admin_api_token_key" {
|
||
|
|
description = "Key in forgejo_admin_vault_path containing the Forgejo API token."
|
||
|
|
type = string
|
||
|
|
default = "apiToken"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "flux_git_ssh_vault_path" {
|
||
|
|
description = "Vault KV path for the Flux Git-over-SSH credential."
|
||
|
|
type = string
|
||
|
|
default = "flux/forgejo/git-ssh"
|
||
|
|
}
|