lerentis 7ba385d44a propose features upstream (#2)
Hi @techknowlogick 👋

as discussed on twitter the changes i made on my fork 😃

not sure if you are aware of this but currently hashicorp only allows publishing via github, so if you want to publish this provider to the terraform registry as well, feel free to also take a look at my goreleaser config and drone/github actions usage her: https://git.uploadfilter24.eu/lerentis/terraform-provider-gitea

Co-authored-by: Tobias Trabelsi <lerentis@uploadfilter24.eu>
Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/2
Co-authored-by: lerentis <lerentis@noreply.gitea.io>
Co-committed-by: lerentis <lerentis@noreply.gitea.io>
2022-08-22 23:54:13 +08:00

2.0 KiB

page_title, subcategory, description
page_title subcategory description
gitea_user Resource - terraform-provider-gitea gitea_user manages a native gitea user. If you are using OIDC or other kinds of authentication mechanisms you can still try to managessh keys or other ressources this way

gitea_user (Resource)

gitea_user manages a native gitea user.

If you are using OIDC or other kinds of authentication mechanisms you can still try to managessh keys or other ressources this way

Example Usage

resource "gitea_user" "test" {
  username             = "test"
  login_name           = "test"
  password             = "Geheim1!"
  email                = "test@user.dev"
  must_change_password = false
}

Schema

Required

  • email (String) E-Mail Address of the user
  • login_name (String) The login name can differ from the username
  • password (String, Sensitive) Password to be set for the user
  • username (String) Username of the user to be created

Optional

  • active (Boolean) Flag if this user should be active or not
  • admin (Boolean) Flag if this user should be an administrator or not
  • allow_create_organization (Boolean)
  • allow_git_hook (Boolean)
  • allow_import_local (Boolean)
  • description (String) A description of the user
  • force_password_change (Boolean) Flag if the user defined password should be overwritten or not
  • full_name (String) Full name of the user
  • location (String)
  • max_repo_creation (Number)
  • must_change_password (Boolean) Flag if the user should change the password after first login
  • prohibit_login (Boolean) Flag if the user should not be allowed to log in (bot user)
  • restricted (Boolean)
  • send_notification (Boolean) Flag to send a notification about the user creation to the defined email
  • visibility (String) Visibility of the user. Can be public, limited or private

Read-Only

  • id (String) The ID of this resource.