added user resource and fixed some typos
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build was killed

This commit is contained in:
2022-06-14 23:24:42 +02:00
parent f8ea8a9276
commit f9e9235726
8 changed files with 464 additions and 8 deletions

View File

@ -23,5 +23,18 @@ resource "gitea_org" "test_org" {
resource "gitea_repository" "org_repo" {
username = gitea_org.test_org.name
name = "org-test-repo"
}
name = "org-test-repo"
}
data "gitea_user" "me" {
username = "lerentis"
}
resource "gitea_user" "test" {
username = "test"
login_name = "test"
password = "Geheim1!"
email = "test@user.dev"
must_change_password = false
admin = true
}

13
examples/provider.tf Normal file
View File

@ -0,0 +1,13 @@
terraform {
required_providers {
gitea = {
source = "terraform.local/lerentis/gitea"
version = "0.4.0"
}
}
}
provider "gitea" {
base_url = var.gitea_url
token = var.gitea_token
}

View File

@ -0,0 +1,7 @@
resource "gitea_user" "test" {
username = "test"
login_name = "test"
password = "Geheim1!"
email = "test@user.dev"
must_change_password = false
}