parent
a10e42d448
commit
ae76ef9c0b
20 changed files with 365 additions and 100 deletions
25
forgejo/.terraform.lock.hcl
generated
Normal file
25
forgejo/.terraform.lock.hcl
generated
Normal file
|
@ -0,0 +1,25 @@
|
|||
# This file is maintained automatically by "tofu init".
|
||||
# Manual edits may be lost in future updates.
|
||||
|
||||
provider "registry.opentofu.org/go-gitea/gitea" {
|
||||
version = "0.1.0"
|
||||
constraints = "0.1.0"
|
||||
hashes = [
|
||||
"h1:idV0H0z0z4SL5aaDaZTLUYz77LwXBHQSqHAZ1wGuwoY=",
|
||||
"zh:039c743351f4bb17bb423a28a507a3d9b87267ce04e127dbb4ad1a80450a280b",
|
||||
"zh:175b5d60b7e13abd477e82ccc2f53973c60cbcdcd88f49746aa76e452ba9af6d",
|
||||
"zh:2cbf2f51ec50b1be06b2ffbb6e5bb4f57b9da9a730a626c26804ec8a7efd1f94",
|
||||
"zh:3126714438319e1cfc20d100905443ce96fd6c68d77760f65107b2a69b369e54",
|
||||
"zh:4709f799dbfa2629b61b0a4480e71dee2421ecc0539be6e402e87e734717c220",
|
||||
"zh:6c4ca036adb3c958f5526a07d9254f0fb682e74e37741abcce033ddb7178afea",
|
||||
"zh:7076b1f2e0052df6195e4ed7e57314524739d348d02b15aebbe874d1f1625c15",
|
||||
"zh:8875b2d45ba7b1bd8cbfd2049961eb00f12de2b7a71a3a038a1f7f1c2a518e9d",
|
||||
"zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425",
|
||||
"zh:9d13957c3bf2f8efdd64fb61fbc8a725d1844a7cc08930e601bcee94361988cc",
|
||||
"zh:aff674f42a61dc3f629c8f5335cd85597767f283cae0fa367f402f5a9e9f714c",
|
||||
"zh:c4c44488ccd284a622d982891f2948396fa781a02341426e9d159bb2309b050c",
|
||||
"zh:c696f7481d7545ed305d43e8bdb5eff692af6d2f67a9b41ad22691c84e6651c4",
|
||||
"zh:e28e01407386c324ef9ef2a8f5765aa13d6a1876bbcc50b77b30ce29bbbca3cd",
|
||||
"zh:e9b5b0925391a8752c8af20855d00a376a89d038cf665e12b74c0de9eef2110e",
|
||||
]
|
||||
}
|
8
forgejo/Makefile
Normal file
8
forgejo/Makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
init:
|
||||
@tofu init
|
||||
|
||||
plan:
|
||||
@tofu plan -out tfplan
|
||||
|
||||
apply:plan
|
||||
@tofu apply tfplan
|
6
forgejo/main.tf
Normal file
6
forgejo/main.tf
Normal file
|
@ -0,0 +1,6 @@
|
|||
data "gitea_user" "admin" {
|
||||
username = "forgejoadmin"
|
||||
}
|
||||
data "gitea_user" "chris" {
|
||||
username = "chris"
|
||||
}
|
12
forgejo/provider.tf
Normal file
12
forgejo/provider.tf
Normal file
|
@ -0,0 +1,12 @@
|
|||
terraform {
|
||||
required_providers {
|
||||
gitea = {
|
||||
source = "go-gitea/gitea"
|
||||
version = "0.1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "gitea" {
|
||||
base_url = var.gitea_url
|
||||
}
|
5
forgejo/variables.tf
Normal file
5
forgejo/variables.tf
Normal file
|
@ -0,0 +1,5 @@
|
|||
variable "gitea_url" {
|
||||
type = string
|
||||
|
||||
default = "https://code.lab.cowley.tech"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue